forked from mainmatter/ember-simple-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
88 lines (85 loc) · 2.03 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* eslint-env node */
module.exports = {
root: true,
parser: '@babel/eslint-parser',
extends: [
'simplabs',
'simplabs/plugins/ember',
'plugin:ember/recommended',
],
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
requireConfigFile: false,
babelOptions: {
babelrc: false,
configFile: false,
presets: ["@babel/preset-env"],
plugins: [
["@babel/plugin-proposal-decorators", { "legacy": true }],
]
},
},
rules: {
'ember/local-modules': 'off',
'ember/no-get': 'off',
'ember/avoid-leaking-state-in-components': 'off',
// Legacy Ember features
'ember/no-actions-hash': 'off',
'ember/no-classic-classes': 'off',
'ember/no-classic-components': 'off',
'ember/no-private-routing-service': 'off',
'ember/require-tagless-components': 'off',
// TODO: REMOVE
'no-implicit-coercion': 'off',
'no-multi-spaces': 'off',
'no-multi-str': 'off',
'no-trailing-spaces': 'off',
'no-unused-vars': 'off',
'no-var': 'off',
'prefer-template': 'off',
'quotes': 'off',
'semi': 'off'
},
overrides: [
// node files
{
files: [
'ember-cli-build.js',
'fastboot-server.js',
'testem.js',
'config/**/*.js',
'.eslintrc.js',
],
excludedFiles: [
'app/**',
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2015
},
env: {
browser: false,
node: true
},
plugins: ['node'],
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
"node/no-extraneous-require": "off",
"node/no-unpublished-require": "off"
// add your custom rules and overrides for node files here
})
},
// Tests
{
files: ['tests/**/*.js'],
extends: ['plugin:qunit/recommended'],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
rules: {
'qunit/no-assert-equal': 'off',
}
}
]
};