forked from projectcaluma/ember-caluma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (40 loc) · 1.09 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
"use strict";
module.exports = {
extends: "@adfinis-sygroup/eslint-config/ember-addon",
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": "^ember-caluma/",
},
overrides: [
...require("@adfinis-sygroup/eslint-config/ember-addon").overrides,
{
files: ["bin/*.js", "testem*.js"],
parserOptions: {
sourceType: "script",
},
env: {
browser: false,
node: true,
},
plugins: ["node"],
rules: Object.assign(
{},
require("eslint-plugin-node").configs.recommended.rules,
{ "prefer-const": ["error"] }
),
},
],
};