Skip to content

Commit

Permalink
build: merge ESLint config files into package.json when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed May 26, 2020
1 parent 0505742 commit 1ba3294
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 36 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

32 changes: 0 additions & 32 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .eslintrc.typescript.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const eslintConfig = require('./.eslintrc')
const { eslintConfig } = require('./package.json')
eslintConfig.parser = '@typescript-eslint/parser'
eslintConfig.parserOptions.sourceType = 'module'
eslintConfig.extends.push(
Expand Down
37 changes: 37 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,43 @@
"ava": {
"timeout": "60s"
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:ava/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:promise/recommended",
"standard"
],
"parserOptions": {
"sourceType": "script"
},
"plugins": [
"ava"
],
"rules": {
"ava/no-import-test-files": 0,
"ava/no-ignored-test-files": 0,
"indent": [
"error",
2,
{
"CallExpression": {
"arguments": "first"
},
"SwitchCase": 1
}
],
"no-console": 0,
"strict": "error"
}
},
"eslintIgnore": [
"typedoc/**/*",
"**/test/fixtures/**/node_modules/**",
"**/test/work/*"
],
"tsd": {
"directory": "test"
},
Expand Down

0 comments on commit 1ba3294

Please sign in to comment.