forked from projectcaluma/ember-caluma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
73 lines (72 loc) · 1.79 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
"use strict";
module.exports = {
root: true,
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
ecmaFeatures: {
legacyDecorators: true,
},
},
plugins: ["ember"],
extends: "@adfinis-sygroup/eslint-config",
env: {
es6: true,
browser: true,
},
rules: {
"ember/no-jquery": "error",
// TODO: https://github.com/projectcaluma/ember-caluma/issues/529
"ember/no-mixins": "warn",
"ember/no-new-mixins": "warn",
"ember/no-observers": "warn",
// TODO: This needs to be done seperately
"ember/no-get": "warn",
"ember/no-classic-components": "warn",
"ember/no-classic-classes": "warn",
"ember/require-tagless-components": "warn",
"ember/no-actions-hash": "warn",
"ember/no-component-lifecycle-hooks": "warn",
},
settings: {
"import/internal-regex": "^(@projectcaluma|ember-caluma)/",
},
overrides: [
// node files
{
files: [
".eslintrc.js",
".prettierrc.js",
".template-lintrc.js",
"config/*.js",
"packages/*/ember-cli-build.js",
"packages/*/index.js",
"packages/*/testem*.js",
"packages/*/blueprints/**/index.js",
"packages/*/config/*.js",
"packages/*/tests/dummy/config/*.js",
],
excludedFiles: [
"packages/*/addon/**",
"packages/*/addon-test-support/**",
"packages/*/app/**",
"packages/*/tests/dummy/app/**",
],
parserOptions: {
sourceType: "script",
},
env: {
browser: false,
node: true,
},
plugins: ["node"],
extends: ["plugin:node/recommended"],
},
{
// Test files:
files: ["packages/*/tests/**/*-test.{js,ts}"],
extends: ["plugin:qunit/recommended"],
},
],
};