Skip to content

Commit

Permalink
style: upgrade eslint config (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Oct 11, 2022
1 parent b019cbd commit 503bcbc
Show file tree
Hide file tree
Showing 53 changed files with 6,076 additions and 4,294 deletions.
13 changes: 3 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
root = true

[*]
indent_style = tab
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,manifest.json,*.yml}]
indent_style = space
indent_size = 2

[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
end_of_line = lf
21 changes: 0 additions & 21 deletions .eslintrc

This file was deleted.

24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"extends": [
"@trigen/eslint-config",
"@trigen/eslint-config/typescript",
"@trigen/eslint-config/typescript-requiring-type-checking",
"@trigen/eslint-config/jest"
],
"env": {
"node": true
},
"parserOptions": {
"tsconfigRootDir": "./",
"project": ["./tsconfig.json"]
},
"rules": {
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"array-element-newline": "off",
"prefer-destructuring": "off"
},
"ignorePatterns": [
"lib"
]
}
11 changes: 11 additions & 0 deletions examples/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"@trigen/eslint-config/commonjs"
],
"env": {
"node": true
},
"rules": {
"no-console": "off"
}
}
Loading

0 comments on commit 503bcbc

Please sign in to comment.