Skip to content

Commit 4769d9e

Browse files
committed
chore(): Update eslint libraries
1 parent 8ac4d53 commit 4769d9e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+13567
-275
lines changed

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/build
2+
**/node_modules
3+
documentation

.eslintrc.js

+19-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
module.exports = {
2+
root: true,
23
env: {
34
node: true,
45
jest: true,
56
},
67
parser: '@typescript-eslint/parser',
78
parserOptions: {
8-
project: './tsconfig.build.json',
9+
sourceType: 'module',
10+
project: ['./packages/*/tsconfig.json', './examples/*/tsconfig.json'],
11+
tsconfigRootDir: __dirname,
912
},
1013
plugins: ['@typescript-eslint', 'prettier', 'import', 'jest', 'eslint-plugin-tsdoc'],
1114
extends: [
@@ -22,8 +25,6 @@ module.exports = {
2225
rules: {
2326
'prettier/prettier': 'error',
2427
'tsdoc/syntax': 'warn',
25-
// todo remove this when upgrading airbnb-typescript
26-
'@typescript-eslint/camelcase': 'off',
2728
// never allow default export
2829
'import/prefer-default-export': 'off',
2930
// never allow default export
@@ -39,5 +40,20 @@ module.exports = {
3940
'@typescript-eslint/ban-ts-comment': 'off',
4041
},
4142
},
43+
{
44+
files: ['*.js'],
45+
parser: '',
46+
parserOptions: { project: './tsconfig.build.json' },
47+
rules: {
48+
'no-console': 'off',
49+
'prettier/prettier': 'error',
50+
'@typescript-eslint/no-unsafe-assignment': 'off',
51+
'@typescript-eslint/no-unsafe-member-access': 'off',
52+
'@typescript-eslint/restrict-template-expressions': 'off',
53+
'@typescript-eslint/no-unsafe-call': 'off',
54+
'@typescript-eslint/no-unsafe-return': 'off',
55+
'@typescript-eslint/no-var-requires': 'off',
56+
},
57+
},
4258
],
4359
};

documentation/package-lock.json

+13,212
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/fast-csv-ts/.eslintrc.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
module.exports = {
2-
parserOptions: {
3-
project: "./tsconfig.build.json"
4-
},
52
rules: {
63
'no-console': 0,
74
},
8-
};
5+
};

examples/fast-csv-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"example": "run-examples --dir=build run",
1010
"build": "npm run clean && npm run compile",
1111
"clean": "rm -rf ./build && rm -rf tsconfig.tsbuildinfo",
12-
"compile": "tsc -p tsconfig.build.json"
12+
"compile": "tsc"
1313
},
1414
"dependencies": {
1515
"example-runner": "4.3.2",

examples/fast-csv-ts/tsconfig.build.json

-7
This file was deleted.

examples/fast-csv-ts/tsconfig.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"include": ["./examples"]
2+
"extends": "../../tsconfig.build.json",
3+
"compilerOptions": {
4+
"outDir": "./build",
5+
"rootDir": "./examples"
6+
}
47
}

examples/formatting-ts/.eslintrc.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
module.exports = {
2-
parserOptions: {
3-
project: "./tsconfig.build.json"
4-
},
52
rules: {
63
'no-console': 0,
74
},
8-
};
5+
};

examples/formatting-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"example": "run-examples --dir=build run",
1010
"build": "npm run clean && npm run compile",
1111
"clean": "rm -rf ./build && rm -rf tsconfig.tsbuildinfo",
12-
"compile": "tsc -p tsconfig.build.json"
12+
"compile": "tsc"
1313
},
1414
"dependencies": {
1515
"@fast-csv/format": "4.3.1",

examples/formatting-ts/tsconfig.build.json

-7
This file was deleted.

examples/formatting-ts/tsconfig.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"include": ["./examples"]
2+
"extends": "../../tsconfig.build.json",
3+
"compilerOptions": {
4+
"outDir": "./build",
5+
"rootDir": "./examples"
6+
}
47
}

examples/js.eslintrc.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
parser: 'esprima',
7+
parserOptions: {
8+
sourceType: 'module',
9+
project: null,
10+
},
11+
plugins: ['prettier', 'import', 'jest'],
12+
extends: ['airbnb-base', 'eslint:recommended', 'prettier'],
13+
ignorePatterns: ['**/build', '**/node_modules', 'documentation', '.eslintrc.js'],
14+
rules: {
15+
'prettier/prettier': 'error',
16+
'no-console': 0,
17+
},
18+
};

examples/parsing-ts/.eslintrc.js

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
module.exports = {
2-
parserOptions: {
3-
project: './tsconfig.build.json',
4-
},
52
rules: {
63
'no-console': 'off',
74
},

examples/parsing-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"example": "run-examples --dir=build run",
1010
"build": "npm run clean && npm run compile",
1111
"clean": "rm -rf ./build && rm -rf tsconfig.tsbuildinfo",
12-
"compile": "tsc -p tsconfig.build.json"
12+
"compile": "tsc"
1313
},
1414
"dependencies": {
1515
"@fast-csv/parse": "4.3.2",

examples/parsing-ts/tsconfig.build.json

-7
This file was deleted.

examples/parsing-ts/tsconfig.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"include": ["./examples"]
2+
"extends": "../../tsconfig.build.json",
3+
"compilerOptions": {
4+
"outDir": "./build",
5+
"rootDir": "./examples"
6+
}
47
}

js.eslintrc.js

-19
This file was deleted.

0 commit comments

Comments
 (0)