Skip to content

Commit

Permalink
Tweak eslint configuration.
Browse files Browse the repository at this point in the history
* Remove unneeded `--ext` setup in `package.json` script
* Migrate to using `plugin:prettier/recommended`
* Remove override in `lib/.eslintrc.js`
  • Loading branch information
rwjblue committed Sep 23, 2020
1 parent f02e270 commit f65e627
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
plugins: ['prettier', '@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended', 'prettier'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:prettier/recommended'],
env: {
browser: true,
},
rules: {
'no-console': 'off',
'prettier/prettier': 'error',
},
overrides: [
{
files: ['**/*.ts'],
parser: '@typescript-eslint/parser',
rules: {
'prefer-const': 'off',

Expand Down
5 changes: 0 additions & 5 deletions lib/.eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"build": "rollup -c",
"changelog": "lerna-changelog",
"docs": "yarn build && documentation build dist/qunit-dom.js --config documentation.yml -f md -o API.md",
"lint": "eslint . --ext=js,ts --cache",
"lint": "eslint . --cache",
"prepublish": "rollup -c",
"test": "jest",
"test:coverage": "jest --coverage",
Expand Down

0 comments on commit f65e627

Please sign in to comment.