2017-03-24 18:44:22 -07:00
|
|
|
module.exports = {
|
2018-01-20 00:46:47 -08:00
|
|
|
root: true,
|
2017-08-15 23:16:38 -07:00
|
|
|
globals: {
|
|
|
|
|
server: true,
|
2018-05-07 10:38:34 -07:00
|
|
|
define: true
|
2017-08-15 23:16:38 -07:00
|
|
|
},
|
2018-08-01 16:35:10 -07:00
|
|
|
extends: ['plugin:ember/recommended', 'prettier'],
|
2018-05-07 10:38:34 -07:00
|
|
|
parser: 'typescript-eslint-parser',
|
2018-01-20 00:46:47 -08:00
|
|
|
parserOptions: {
|
2018-05-07 10:38:34 -07:00
|
|
|
ecmaVersion: 2018,
|
|
|
|
|
sourceType: 'module'
|
2017-03-24 18:44:22 -07:00
|
|
|
},
|
2018-05-07 10:38:34 -07:00
|
|
|
env: {
|
|
|
|
|
browser: true,
|
|
|
|
|
node: true
|
2017-03-24 18:44:22 -07:00
|
|
|
},
|
2018-05-07 10:38:34 -07:00
|
|
|
rules: {
|
|
|
|
|
'no-implicit-globals': [1],
|
2018-08-21 11:33:03 -07:00
|
|
|
'no-console': 'error',
|
|
|
|
|
'no-debugger': 'error',
|
2018-05-07 16:54:17 -07:00
|
|
|
'typescript/class-name-casing': 'error',
|
|
|
|
|
'typescript/interface-name-prefix': ['error', 'always'],
|
|
|
|
|
'typescript/member-delimiter-style': 'error',
|
|
|
|
|
'typescript/no-empty-interface': 'error',
|
2018-05-07 10:38:34 -07:00
|
|
|
'prettier/prettier': ['error', { singleQuote: true, printWidth: 120 }]
|
2017-08-27 04:22:07 -07:00
|
|
|
},
|
2018-05-07 10:38:34 -07:00
|
|
|
plugins: ['prettier', 'ember', 'typescript'],
|
2018-01-20 00:46:47 -08:00
|
|
|
overrides: [
|
|
|
|
|
// node files
|
|
|
|
|
{
|
2018-05-07 10:38:34 -07:00
|
|
|
files: ['testem.js', 'ember-cli-build.js', 'config/**/*.js'],
|
2018-01-20 00:46:47 -08:00
|
|
|
parserOptions: {
|
|
|
|
|
sourceType: 'script',
|
|
|
|
|
ecmaVersion: 2015
|
|
|
|
|
},
|
|
|
|
|
env: {
|
|
|
|
|
browser: false,
|
|
|
|
|
node: true
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-08-27 04:22:07 -07:00
|
|
|
]
|
2017-03-24 18:44:22 -07:00
|
|
|
};
|