|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + extends: [ |
| 4 | + 'simplabs', |
| 5 | + 'simplabs/plugins/ember', |
| 6 | + 'plugin:ember/recommended', |
| 7 | + ], |
| 8 | + parserOptions: { |
| 9 | + ecmaVersion: 2017, |
| 10 | + sourceType: 'module' |
| 11 | + }, |
| 12 | + rules: { |
| 13 | + 'ember/local-modules': 'off', |
| 14 | + 'ember/no-get': 'off', |
| 15 | + 'ember/avoid-leaking-state-in-components': 'off', |
| 16 | + |
| 17 | + // Legacy Ember features |
| 18 | + 'ember/no-actions-hash': 'off', |
| 19 | + 'ember/no-classic-classes': 'off', |
| 20 | + 'ember/no-classic-components': 'off', |
| 21 | + 'ember/no-private-routing-service': 'off', |
| 22 | + 'ember/require-tagless-components': 'off', |
| 23 | + |
| 24 | + // TODO: REMOVE |
| 25 | + 'no-implicit-coercion': 'off', |
| 26 | + 'no-multi-spaces': 'off', |
| 27 | + 'no-multi-str': 'off', |
| 28 | + 'no-trailing-spaces': 'off', |
| 29 | + 'no-unused-vars': 'off', |
| 30 | + 'no-var': 'off', |
| 31 | + 'prefer-template': 'off', |
| 32 | + 'quotes': 'off', |
| 33 | + 'semi': 'off' |
| 34 | + }, |
| 35 | + overrides: [ |
| 36 | + // node files |
| 37 | + { |
| 38 | + files: [ |
| 39 | + 'ember-cli-build.js', |
| 40 | + 'fastboot-server.js', |
| 41 | + 'testem.js', |
| 42 | + 'config/**/*.js', |
| 43 | + '.eslintrc.js', |
| 44 | + ], |
| 45 | + excludedFiles: [ |
| 46 | + 'app/**', |
| 47 | + ], |
| 48 | + parserOptions: { |
| 49 | + sourceType: 'script', |
| 50 | + ecmaVersion: 2015 |
| 51 | + }, |
| 52 | + env: { |
| 53 | + browser: false, |
| 54 | + node: true |
| 55 | + }, |
| 56 | + plugins: ['node'], |
| 57 | + rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, { |
| 58 | + "node/no-extraneous-require": "off", |
| 59 | + "node/no-unpublished-require": "off" |
| 60 | + // add your custom rules and overrides for node files here |
| 61 | + }) |
| 62 | + }, |
| 63 | + // Tests |
| 64 | + { |
| 65 | + files: ['tests/**/*.js'], |
| 66 | + extends: ['plugin:qunit/recommended'], |
| 67 | + parserOptions: { |
| 68 | + ecmaVersion: 2017, |
| 69 | + sourceType: 'module', |
| 70 | + }, |
| 71 | + rules: { |
| 72 | + 'qunit/no-assert-equal': 'off', |
| 73 | + } |
| 74 | + } |
| 75 | + ] |
| 76 | +}; |
0 commit comments