Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Apr 8, 2024
1 parent e40e86d commit 76ff53c
Show file tree
Hide file tree
Showing 4 changed files with 355 additions and 20 deletions.
19 changes: 0 additions & 19 deletions .eslintrc

This file was deleted.

27 changes: 27 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import js from '@eslint/js'
import stylistic from '@stylistic/eslint-plugin'

export default [
js.configs.recommended,
{
plugins: {
'@stylistic': stylistic
},
languageOptions: {
sourceType: 'module',
ecmaVersion: 2020,
globals: {
es6: true,
node: true,
browser: false
}
},
rules: {
quotes: [2, 'single'],
indent: [2, 2, {SwitchCase: 1}],
camelcase: [2, {properties: 'always'}],
'@stylistic/linebreak-style': [2, 'unix'],
'@stylistic/brace-style': [2, '1tbs', {allowSingleLine: true}],
}
}
]
Loading

0 comments on commit 76ff53c

Please sign in to comment.