Skip to content

Commit

Permalink
#AIR
Browse files Browse the repository at this point in the history
  • Loading branch information
vs-kurkin committed Oct 22, 2024
1 parent 2ee769b commit 09eeda1
Show file tree
Hide file tree
Showing 13 changed files with 561 additions and 408 deletions.
8 changes: 6 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ root = true
[*]
indent_style = space
indent_size = 2
end_of_line = LF
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80

[*.md]
[*.json]
indent_size = 4

[*.{md,markdown}]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ graph.json
.idea
.vscode
*.iml
.codiumai
69 changes: 33 additions & 36 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,42 @@ import tsLintPlugin from '@typescript-eslint/eslint-plugin'
import tsLintParser from '@typescript-eslint/parser'
import globals from 'globals'

export default [
js.configs.recommended,
const baseConfig = {
...js.configs.recommended,
...tsLintPlugin.configs.recommendedTypeCheckedOnly,
...tsLintPlugin.configs.stylecticTypeCheckedOnly,
}

{
...tsLintPlugin.configs.recommendedTypeCheckedOnly,
...tsLintPlugin.configs.stylecticTypeCheckedOnly,
languageOptions:
{
globals: {
...globals.node,
},
},
const srcConfig = {
files: [ 'src/**/*' ],
languageOptions: {
parser: tsLintParser,
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
'@typescript-eslint': tsLintPlugin,
},
rules: {
'@typescript-eslint/no-explicit-any': [ 'warn', { fixToUnknown: true } ],
'@typescript-eslint/no-unused-vars': 'error',
'no-unused-vars': 'off',
},
}

{
files: [ 'src/**/*' ],
languageOptions: {
parser: tsLintParser,
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
'@typescript-eslint': tsLintPlugin,
},
rules: {
'@typescript-eslint/no-explicit-any': [ 'warn', { 'fixToUnknown': true } ],
'@typescript-eslint/no-unused-vars': 'error',
'no-unused-vars': 'off',
},
const testConfig = {
files: [ 'test/**/*' ],
languageOptions: {
globals: globals.jest,
},
}

{
files: [ 'test/**/*' ],
languageOptions: {
globals: {
...globals.jest,
},
},
const nodeConfig = {
languageOptions: {
globals: globals.node,
},
]
}

export default [ baseConfig, srcConfig, testConfig, nodeConfig ]
Loading

0 comments on commit 09eeda1

Please sign in to comment.