Skip to content

Commit 28685f6

Browse files
committed
chore: eslint setup
1 parent 7ec824e commit 28685f6

6 files changed

+46
-23
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
quote_type = single

.eslintrc

-21
This file was deleted.

.eslintrc.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
sourceType: 'module',
5+
project: ['./tsconfig.eslint.json', './packages/*/tsconfig.json'],
6+
tsconfigRootDir: __dirname,
7+
},
8+
plugins: ['@typescript-eslint'],
9+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
10+
rules: {
11+
'no-case-declarations': 'off',
12+
'@typescript-eslint/no-namespace': 'off',
13+
'@typescript-eslint/explicit-module-boundary-types': 'off',
14+
'@typescript-eslint/no-explicit-any': 'off',
15+
'@typescript-eslint/no-unused-vars': 'off',
16+
'@typescript-eslint/ban-types': 'off',
17+
'@typescript-eslint/no-non-null-assertion': 'off',
18+
},
19+
};

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ typedocs/
99
.build
1010
storybook-static/
1111
.rollup.cache/
12-
test-report.xml
12+
test-report.xml
13+
*.code-workspace

.vscode/extensions.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
44

55
// List of extensions which should be recommended for users of this workspace.
6-
"recommendations": ["esbenp.prettier-vscode", "redhat.vscode-yaml"],
6+
"recommendations": [
7+
"esbenp.prettier-vscode",
8+
"redhat.vscode-yaml",
9+
"dbaeumer.vscode-eslint",
10+
"editorconfig.editorconfig"
11+
],
712
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
813
"unwantedRecommendations": []
914
}

tsconfig.eslint.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compilerOptions": {
3+
"types": ["@types/node"],
4+
"noEmit": true,
5+
"allowJs": true
6+
},
7+
"extends": "./module-build/tsconfig.esm.json",
8+
"include": ["tests/**/*.ts", "tools/**/*.ts", ".eslintrc.js"]
9+
}

0 commit comments

Comments
 (0)