Skip to content

Commit 97f4645

Browse files
committed
improved eslint & styles
1 parent 157bdf2 commit 97f4645

12 files changed

Lines changed: 682 additions & 690 deletions

File tree

LICENSE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Copyright 2019 - present
1+
MIT License
2+
3+
Copyright (c) 2019 Solid
24

35
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
46
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

eslint.config.mjs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
import { defineConfig, globalIgnores } from 'eslint/config'
2-
import typescriptEslint from '@typescript-eslint/eslint-plugin'
1+
import tseslintPlugin from '@typescript-eslint/eslint-plugin'
32
import globals from 'globals'
43
import tsParser from '@typescript-eslint/parser'
54
import neostandard from 'neostandard'
65

7-
export default defineConfig([
6+
export default [
87
...neostandard(),
9-
globalIgnores([
10-
'lib/*',
11-
'**/*.html',
12-
'**/*.md',
13-
'**/*.json',
14-
'Documentation/*',
15-
'node_modules/*',
16-
'coverage/*',
17-
'dist/*',
18-
'test/*',
19-
'examples/*'
20-
]),
218
{
9+
ignores: [
10+
'lib/**',
11+
'**/*.html',
12+
'**/*.md',
13+
'**/*.json',
14+
'Documentation/**',
15+
'node_modules/**',
16+
'coverage/**',
17+
'dist/**',
18+
'test/**',
19+
'examples/**'
20+
],
21+
},
22+
{
23+
files: ['src/**/*.js', 'src/**/*.ts', 'src/**/*.cjs', 'src/**/*.mjs'],
2224
plugins: {
23-
'@typescript-eslint': typescriptEslint,
25+
'@typescript-eslint': tseslintPlugin,
2426
},
2527

2628
languageOptions: {
@@ -30,20 +32,18 @@ export default defineConfig([
3032
Atomics: 'readonly',
3133
SharedArrayBuffer: 'readonly',
3234
},
33-
3435
parser: tsParser,
3536
},
36-
37-
files: ['src/**/*.js', 'src/**/*.ts', 'src/**/*.cjs', 'src/**/*.mjs'],
38-
3937
rules: {
38+
semi: ['error', 'never'],
39+
quotes: ['error', 'single'],
4040
'no-console': 'error',
4141
'no-unused-vars': 'off',
42-
4342
'@typescript-eslint/no-unused-vars': ['warn', {
4443
argsIgnorePattern: '^_',
4544
varsIgnorePattern: '^_',
4645
}],
46+
// '@typescript-eslint/no-explicit-any': 'warn', - codebase not ready for this
4747
},
4848
},
49-
])
49+
]

0 commit comments

Comments
 (0)