xcraft-core-pickaxe 0.1.9 → 0.1.12
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 +65 -0
- package/package.json +2 -2
- package/.eslintrc.js +0 -39
package/eslint.config.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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, // Évite de devoir spécifier un fichier de configuration Babel
|
|
19
|
+
babelOptions: {
|
|
20
|
+
presets: ['@babel/preset-react'],
|
|
21
|
+
},
|
|
22
|
+
ecmaFeatures: {
|
|
23
|
+
jsx: true,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
globals: {
|
|
27
|
+
...globals.browser,
|
|
28
|
+
...globals.node,
|
|
29
|
+
...globals.es2022,
|
|
30
|
+
...globals.mocha,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
plugins: {
|
|
34
|
+
'react': react,
|
|
35
|
+
'jsdoc': jsdoc,
|
|
36
|
+
'@babel': babel,
|
|
37
|
+
},
|
|
38
|
+
rules: {
|
|
39
|
+
'eqeqeq': 'error',
|
|
40
|
+
'no-console': 'off',
|
|
41
|
+
'react/display-name': 'off',
|
|
42
|
+
'@babel/no-unused-expressions': 'error', // Utilisation de règles spécifiques à Babel
|
|
43
|
+
'no-unused-vars': [
|
|
44
|
+
'error',
|
|
45
|
+
{
|
|
46
|
+
vars: 'all',
|
|
47
|
+
args: 'none',
|
|
48
|
+
ignoreRestSiblings: true,
|
|
49
|
+
destructuredArrayIgnorePattern: '^_',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
'jsdoc/require-jsdoc': 'off',
|
|
53
|
+
'jsdoc/require-param-description': 'off',
|
|
54
|
+
'jsdoc/require-returns-description': 'off',
|
|
55
|
+
},
|
|
56
|
+
settings: {
|
|
57
|
+
react: {
|
|
58
|
+
version: 'detect',
|
|
59
|
+
},
|
|
60
|
+
jsdoc: {
|
|
61
|
+
mode: 'typescript',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xcraft-core-pickaxe",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Query builder",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"prettier": "2.0.4",
|
|
24
24
|
"xcraft-dev-prettier": "^2.0.0",
|
|
25
|
-
"xcraft-dev-rules": "^4.
|
|
25
|
+
"xcraft-dev-rules": "^4.4.2"
|
|
26
26
|
},
|
|
27
27
|
"prettier": "xcraft-dev-prettier"
|
|
28
28
|
}
|
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
|
-
};
|