Skip to content

Commit 89b6101

Browse files
committed
fix eslint setup
1 parent d5aaa03 commit 89b6101

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.eslintrc.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ module.exports = {
22
parser: '@typescript-eslint/parser',
33
ignorePatterns: ["node_modules/"],
44
parserOptions: {
5-
createDefaultProgram: true,
6-
project: require.resolve('./tsconfig.json')
5+
createDefaultProgram: true
76
},
87
env: {
98
browser: true,
109
node: true,
11-
mocha: true,
1210
es6: true,
1311
jest: true
1412
},
@@ -19,6 +17,15 @@ module.exports = {
1917
plugins: [
2018
'@typescript-eslint',
2119
],
20+
overrides: [
21+
{
22+
files: ['*.ts', '*.js'],
23+
parserOptions: {
24+
project: require.resolve('./tsconfig.json'),
25+
createDefaultProgram: true,
26+
}
27+
}
28+
],
2229
rules: {
2330
complexity: ['error', { max: 25 }],
2431
'no-console': ['error'],

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "bit-angular",
33
"version": "1.0.0",
44
"description": "<h1 align=\"center\">Bit Angular</h1> <p align=\"center\"> <img src=\"https://storage.googleapis.com/static.bit.dev/harmony-docs/readme-logo%20(2).png\"/> </p>",
5-
"main": ".eslintrc.js",
65
"directories": {
76
"example": "examples"
87
},

0 commit comments

Comments
 (0)