@tpluscode/eslint-config 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/js.js +7 -2
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
package/js.js
CHANGED
|
@@ -7,6 +7,7 @@ import n from 'eslint-plugin-n'
|
|
|
7
7
|
import promise from 'eslint-plugin-promise'
|
|
8
8
|
import rdf from 'eslint-plugin-rdf'
|
|
9
9
|
import unusedImports from 'eslint-plugin-unused-imports'
|
|
10
|
+
import stylistic from '@stylistic/eslint-plugin'
|
|
10
11
|
|
|
11
12
|
const require = createRequire(import.meta.url)
|
|
12
13
|
const requireExtensions = require('eslint-plugin-require-extensions')
|
|
@@ -17,6 +18,10 @@ function rulesFrom(config) {
|
|
|
17
18
|
|
|
18
19
|
export default [
|
|
19
20
|
js.configs.recommended,
|
|
21
|
+
{
|
|
22
|
+
plugins: { '@stylistic': stylistic },
|
|
23
|
+
},
|
|
24
|
+
stylistic.configs['recommended'],
|
|
20
25
|
{
|
|
21
26
|
files: ['**/*.{js,cjs,mjs}'],
|
|
22
27
|
languageOptions: {
|
|
@@ -28,7 +33,7 @@ export default [
|
|
|
28
33
|
},
|
|
29
34
|
},
|
|
30
35
|
plugins: {
|
|
31
|
-
import: importPlugin,
|
|
36
|
+
'import': importPlugin,
|
|
32
37
|
mocha,
|
|
33
38
|
n,
|
|
34
39
|
promise,
|
|
@@ -49,7 +54,7 @@ export default [
|
|
|
49
54
|
...rulesFrom(requireExtensions.configs.recommended),
|
|
50
55
|
...rulesFrom(mocha.configs.recommended),
|
|
51
56
|
|
|
52
|
-
indent: ['error', 2],
|
|
57
|
+
'indent': ['error', 2],
|
|
53
58
|
'no-console': 'error',
|
|
54
59
|
'import/no-unresolved': 'error',
|
|
55
60
|
'import/extensions': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tpluscode/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@eslint/js": ">=9 <11",
|
|
20
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
20
21
|
"globals": "^15.0.0"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
@@ -47,8 +48,8 @@
|
|
|
47
48
|
"eslint-plugin-rdf": "^2.0.1",
|
|
48
49
|
"eslint-plugin-require-extensions": "^0.1.3",
|
|
49
50
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
51
|
+
"husky": "^9.0.11",
|
|
52
|
+
"lint-staged": "^15.2.7"
|
|
52
53
|
},
|
|
53
54
|
"repository": {
|
|
54
55
|
"type": "git",
|