@seahax/config-eslint 0.3.5 → 0.3.7
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/dist/index.d.ts +1 -5
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/** Stylistic indent in spaces (2 by default - should match prettier) */
|
|
3
|
-
readonly indent?: number;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: ({ indent }?: Options) => import("eslint/config").Config[];
|
|
1
|
+
declare const _default: () => import("eslint/config").Config[];
|
|
6
2
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import prettierPluginRecommended from 'eslint-plugin-prettier/recommended';
|
|
|
6
6
|
import regexp from 'eslint-plugin-regexp';
|
|
7
7
|
import simpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
8
8
|
import tseslint from 'typescript-eslint';
|
|
9
|
-
export default (
|
|
9
|
+
export default () => {
|
|
10
10
|
return defineConfig(progress(), {
|
|
11
11
|
ignores: ['**/{node_modules,lib,dist,out,coverage}'],
|
|
12
12
|
}, js.configs.recommended, {
|
|
@@ -51,7 +51,6 @@ export default ({ indent = 2 } = {}) => {
|
|
|
51
51
|
stylistic.configs.customize({
|
|
52
52
|
commaDangle: 'always-multiline',
|
|
53
53
|
braceStyle: '1tbs',
|
|
54
|
-
indent,
|
|
55
54
|
quotes: 'single',
|
|
56
55
|
quoteProps: 'as-needed',
|
|
57
56
|
arrowParens: true,
|
|
@@ -59,6 +58,8 @@ export default ({ indent = 2 } = {}) => {
|
|
|
59
58
|
severity: 'warn',
|
|
60
59
|
}), {
|
|
61
60
|
rules: {
|
|
61
|
+
'@stylistic/indent': 'off',
|
|
62
|
+
'@stylistic/indent-binary-ops': 'off',
|
|
62
63
|
'@stylistic/operator-linebreak': 'off',
|
|
63
64
|
},
|
|
64
65
|
});
|
package/package.json
CHANGED