goblin-gadgets 4.0.16 → 4.0.17
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/eslint.config.js +62 -0
- package/package.json +2 -2
- package/.eslintrc.js +0 -39
package/eslint.config.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const js = require('@eslint/js');
|
|
2
|
+
const globals = require('globals');
|
|
3
|
+
const react = require('eslint-plugin-react');
|
|
4
|
+
const jsdoc = require('eslint-plugin-jsdoc');
|
|
5
|
+
const babel = require('@babel/eslint-plugin');
|
|
6
|
+
const prettier = require('eslint-config-prettier');
|
|
7
|
+
const babelParser = require('@babel/eslint-parser');
|
|
8
|
+
|
|
9
|
+
module.exports = [
|
|
10
|
+
js.configs.recommended,
|
|
11
|
+
react.configs.flat.recommended,
|
|
12
|
+
jsdoc.configs['flat/recommended'],
|
|
13
|
+
prettier,
|
|
14
|
+
{
|
|
15
|
+
languageOptions: {
|
|
16
|
+
parser: babelParser,
|
|
17
|
+
parserOptions: {
|
|
18
|
+
requireConfigFile: false,
|
|
19
|
+
ecmaFeatures: {
|
|
20
|
+
jsx: true,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
globals: {
|
|
24
|
+
...globals.browser,
|
|
25
|
+
...globals.node,
|
|
26
|
+
...globals.es2022,
|
|
27
|
+
...globals.mocha,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
plugins: {
|
|
31
|
+
'react': react,
|
|
32
|
+
'jsdoc': jsdoc,
|
|
33
|
+
'@babel': babel,
|
|
34
|
+
},
|
|
35
|
+
rules: {
|
|
36
|
+
'eqeqeq': 'error',
|
|
37
|
+
'no-console': 'off',
|
|
38
|
+
'react/display-name': 'off',
|
|
39
|
+
'@babel/no-unused-expressions': 'error',
|
|
40
|
+
'no-unused-vars': [
|
|
41
|
+
'error',
|
|
42
|
+
{
|
|
43
|
+
vars: 'all',
|
|
44
|
+
args: 'none',
|
|
45
|
+
ignoreRestSiblings: true,
|
|
46
|
+
destructuredArrayIgnorePattern: '^_',
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
'jsdoc/require-jsdoc': 'off',
|
|
50
|
+
'jsdoc/require-param-description': 'off',
|
|
51
|
+
'jsdoc/require-returns-description': 'off',
|
|
52
|
+
},
|
|
53
|
+
settings: {
|
|
54
|
+
react: {
|
|
55
|
+
version: 'detect',
|
|
56
|
+
},
|
|
57
|
+
jsdoc: {
|
|
58
|
+
mode: 'typescript',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "goblin-gadgets",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.17",
|
|
4
4
|
"description": "Gadgets library",
|
|
5
5
|
"main": "./builders/builders.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"scroll-into-view-if-needed": "^1.4.0",
|
|
45
45
|
"xcraft-core-shredder": "^5.0.0",
|
|
46
46
|
"xcraft-dev-prettier": "^2.0.0",
|
|
47
|
-
"xcraft-dev-rules": "^4.
|
|
47
|
+
"xcraft-dev-rules": "^4.4.0"
|
|
48
48
|
},
|
|
49
49
|
"prettier": "xcraft-dev-prettier"
|
|
50
50
|
}
|
package/.eslintrc.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
parserOptions: {
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
ecmaFeatures: {
|
|
8
|
-
jsx: true,
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
env: {
|
|
12
|
-
browser: true,
|
|
13
|
-
es2022: true,
|
|
14
|
-
mocha: true,
|
|
15
|
-
node: true,
|
|
16
|
-
},
|
|
17
|
-
plugins: ['react', 'babel', 'jsdoc'],
|
|
18
|
-
extends: [
|
|
19
|
-
'prettier',
|
|
20
|
-
'eslint:recommended',
|
|
21
|
-
'plugin:react/recommended',
|
|
22
|
-
'plugin:jsdoc/recommended',
|
|
23
|
-
],
|
|
24
|
-
rules: {
|
|
25
|
-
// Other rules
|
|
26
|
-
'no-console': 'off',
|
|
27
|
-
'eqeqeq': 'error',
|
|
28
|
-
'react/display-name': 'off',
|
|
29
|
-
'no-unused-vars': [
|
|
30
|
-
'error',
|
|
31
|
-
{
|
|
32
|
-
vars: 'all',
|
|
33
|
-
args: 'none',
|
|
34
|
-
ignoreRestSiblings: true,
|
|
35
|
-
destructuredArrayIgnorePattern: '^_',
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
};
|