@nzyme/eslint 0.1.0 → 0.2.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/package.json +6 -3
- package/imports.js +0 -27
- package/jsdoc.js +0 -30
- package/typescript.js +0 -31
- package/vue.js +0 -20
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nzyme/eslint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"license": "MIT",
|
|
4
5
|
"repository": "https://github.com/kedrzu/nzyme.git",
|
|
5
6
|
"author": "Michał Kędrzyński <m.kedrzynski@gmail.com>",
|
|
6
7
|
"publishConfig": {
|
|
7
8
|
"access": "public"
|
|
8
9
|
},
|
|
9
|
-
"
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
10
13
|
"sideEffects": false,
|
|
11
14
|
"dependencies": {
|
|
12
15
|
"@typescript-eslint/eslint-plugin": "^8.19.0",
|
|
@@ -19,5 +22,5 @@
|
|
|
19
22
|
"eslint-plugin-vue": "^9.32.0",
|
|
20
23
|
"eslint-plugin-workspaces": "^0.10.1"
|
|
21
24
|
},
|
|
22
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "e5e0ceb0ba760848b95139fdf12ec9709e574ed2"
|
|
23
26
|
}
|
package/imports.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: ['plugin:import/errors', 'plugin:import/warnings', 'plugin:import/typescript'],
|
|
3
|
-
plugins: ['eslint-plugin-import'],
|
|
4
|
-
rules: {
|
|
5
|
-
'import/order': [
|
|
6
|
-
'warn',
|
|
7
|
-
{
|
|
8
|
-
'newlines-between': 'always',
|
|
9
|
-
groups: ['builtin', 'external', 'internal', ['parent', 'sibling'], 'index'],
|
|
10
|
-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md#pathgroups-array-of-objects
|
|
11
|
-
pathGroups: [
|
|
12
|
-
{
|
|
13
|
-
pattern: '@nzyme/**',
|
|
14
|
-
group: 'internal',
|
|
15
|
-
position: 'before',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
pathGroupsExcludedImportTypes: ['builtin'],
|
|
19
|
-
alphabetize: {
|
|
20
|
-
order: 'asc',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
// we have TypeScript handling that
|
|
25
|
-
'import/no-unresolved': 'off',
|
|
26
|
-
},
|
|
27
|
-
};
|
package/jsdoc.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
plugins: ['eslint-plugin-jsdoc'],
|
|
3
|
-
extends: ['plugin:jsdoc/recommended-typescript'],
|
|
4
|
-
rules: {
|
|
5
|
-
'jsdoc/require-jsdoc': [
|
|
6
|
-
1,
|
|
7
|
-
{
|
|
8
|
-
publicOnly: {
|
|
9
|
-
esm: true,
|
|
10
|
-
cjs: false,
|
|
11
|
-
},
|
|
12
|
-
contexts: [
|
|
13
|
-
'ClassDeclaration',
|
|
14
|
-
'ClassProperty',
|
|
15
|
-
'FunctionDeclaration',
|
|
16
|
-
'MethodDefinition',
|
|
17
|
-
'ExportNamedDeclaration > VariableDeclaration',
|
|
18
|
-
'TSDeclareFunction',
|
|
19
|
-
'TSEnumDeclaration',
|
|
20
|
-
'TSInterfaceDeclaration',
|
|
21
|
-
'TSMethodSignature',
|
|
22
|
-
':not(TSTypeParameterDeclaration) TSPropertySignature',
|
|
23
|
-
'TSTypeAliasDeclaration',
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
'jsdoc/no-blank-block-descriptions': 'warn',
|
|
28
|
-
'jsdoc/no-blank-blocks': 'warn',
|
|
29
|
-
},
|
|
30
|
-
};
|
package/typescript.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
node: true,
|
|
4
|
-
browser: true,
|
|
5
|
-
},
|
|
6
|
-
// Do not check eslint config files, because they collide with typecsript config.
|
|
7
|
-
ignorePatterns: ['.eslintrc.cjs', 'dist/**/*', 'node_modules/**/*'],
|
|
8
|
-
parser: '@typescript-eslint/parser',
|
|
9
|
-
plugins: ['@typescript-eslint', 'workspaces', 'monorepo'],
|
|
10
|
-
extends: [
|
|
11
|
-
'eslint:recommended',
|
|
12
|
-
'plugin:@typescript-eslint/eslint-recommended',
|
|
13
|
-
'plugin:@typescript-eslint/recommended',
|
|
14
|
-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
15
|
-
'prettier',
|
|
16
|
-
'./imports',
|
|
17
|
-
],
|
|
18
|
-
rules: {
|
|
19
|
-
curly: 'error',
|
|
20
|
-
'require-await': 'error',
|
|
21
|
-
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
22
|
-
'@typescript-eslint/consistent-type-imports': 'error',
|
|
23
|
-
'@typescript-eslint/no-import-type-side-effects': 'error',
|
|
24
|
-
|
|
25
|
-
'workspaces/no-relative-imports': 'error',
|
|
26
|
-
'workspaces/no-absolute-imports': 'error',
|
|
27
|
-
'workspaces/require-dependency': 'error',
|
|
28
|
-
|
|
29
|
-
'monorepo/no-relative-import': 'error',
|
|
30
|
-
},
|
|
31
|
-
};
|
package/vue.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
node: true,
|
|
5
|
-
},
|
|
6
|
-
extends: ['plugin:vue/vue3-recommended', './typescript.js'],
|
|
7
|
-
parser: 'vue-eslint-parser',
|
|
8
|
-
parserOptions: {
|
|
9
|
-
parser: '@typescript-eslint/parser',
|
|
10
|
-
extraFileExtensions: ['.vue'],
|
|
11
|
-
},
|
|
12
|
-
plugins: [],
|
|
13
|
-
rules: {
|
|
14
|
-
'vue/multi-word-component-names': 'off',
|
|
15
|
-
// Not needed in vue 3
|
|
16
|
-
'vue/require-v-for-key': 'off',
|
|
17
|
-
'vue/require-default-prop': 'off',
|
|
18
|
-
'vue/one-component-per-file': 'off',
|
|
19
|
-
},
|
|
20
|
-
};
|