Skip to content

Commit

Permalink
chore(lints): add easy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Apr 22, 2021
1 parent e4c2d99 commit 03e7370
Show file tree
Hide file tree
Showing 3 changed files with 349 additions and 64 deletions.
55 changes: 3 additions & 52 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,54 +1,5 @@
'use strict';

module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
},
},
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:prettier/recommended',
],
env: {
browser: true,
},
rules: {},
overrides: [
// node files
{
files: [
'.eslintrc.js',
'.prettierrc.js',
'.template-lintrc.js',
'ember-cli-build.js',
'index.js',
'testem.js',
'blueprints/*/index.js',
'config/**/*.js',
'tests/dummy/config/**/*.js',
],
excludedFiles: [
'addon/**',
'addon-test-support/**',
'app/**',
'tests/dummy/app/**',
],
parserOptions: {
sourceType: 'script',
},
env: {
browser: false,
node: true,
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
},
],
};
const { configs } = require('@nullvoxpopuli/eslint-configs');

module.exports = configs.ember();
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@ember/test-helpers": "^2.2.0",
"@glimmer/component": "^1.0.3",
"@glimmer/tracking": "^1.0.3",
"@nullvoxpopuli/eslint-configs": "^1.2.5",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/ember-qunit": "^3.4.13",
Expand Down Expand Up @@ -111,7 +112,7 @@
]
},
"volta": {
"node": "12.20.2",
"node": "12.22.1",
"yarn": "1.22.10"
},
"engines": {
Expand Down
Loading

0 comments on commit 03e7370

Please sign in to comment.