@trenskow/parse 0.1.21 → 0.1.23
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.mjs +55 -0
- package/package.json +31 -28
- package/.eslintrc.cjs +0 -63
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import globals from 'globals';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import js from '@eslint/js';
|
|
5
|
+
import { FlatCompat } from '@eslint/eslintrc';
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = path.dirname(__filename);
|
|
9
|
+
const compat = new FlatCompat({
|
|
10
|
+
baseDirectory: __dirname,
|
|
11
|
+
recommendedConfig: js.configs.recommended,
|
|
12
|
+
allConfig: js.configs.all
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export default [...compat.extends('eslint:recommended'), {
|
|
16
|
+
languageOptions: {
|
|
17
|
+
globals: {
|
|
18
|
+
...globals.node,
|
|
19
|
+
...globals.mocha,
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
ecmaVersion: 'latest',
|
|
23
|
+
sourceType: 'module',
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
rules: {
|
|
27
|
+
indent: ['error', 'tab', {
|
|
28
|
+
SwitchCase: 1,
|
|
29
|
+
}],
|
|
30
|
+
|
|
31
|
+
'linebreak-style': ['error', 'unix'],
|
|
32
|
+
quotes: ['error', 'single'],
|
|
33
|
+
semi: ['error', 'always'],
|
|
34
|
+
|
|
35
|
+
'no-console': ['error', {
|
|
36
|
+
allow: ['warn', 'error', 'info'],
|
|
37
|
+
}],
|
|
38
|
+
|
|
39
|
+
'no-unused-vars': ['error', {
|
|
40
|
+
argsIgnorePattern: '^_',
|
|
41
|
+
}],
|
|
42
|
+
|
|
43
|
+
'no-empty': ['error', {
|
|
44
|
+
allowEmptyCatch: true,
|
|
45
|
+
}],
|
|
46
|
+
|
|
47
|
+
'no-trailing-spaces': ['error', {
|
|
48
|
+
ignoreComments: true,
|
|
49
|
+
}],
|
|
50
|
+
|
|
51
|
+
'require-atomic-updates': 'off',
|
|
52
|
+
'no-implicit-globals': ['error'],
|
|
53
|
+
'eol-last': ['error', 'always'],
|
|
54
|
+
},
|
|
55
|
+
}];
|
package/package.json
CHANGED
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
2
|
+
"name": "@trenskow/parse",
|
|
3
|
+
"version": "0.1.23",
|
|
4
|
+
"description": "A small library for parsing a string into a tree.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "node ./node_modules/mocha/bin/mocha ./test.js"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/trenskow/parse.git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"parse",
|
|
16
|
+
"string",
|
|
17
|
+
"nested"
|
|
18
|
+
],
|
|
19
|
+
"author": "Kristian Trenskow",
|
|
20
|
+
"license": "BSD-2-Clause",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/trenskow/parse/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/trenskow/parse#readme",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
27
|
+
"@eslint/js": "^9.13.0",
|
|
28
|
+
"chai": "^5.1.1",
|
|
29
|
+
"eslint": "^9.13.0",
|
|
30
|
+
"globals": "^15.11.0",
|
|
31
|
+
"mocha": "^10.7.3"
|
|
32
|
+
}
|
|
30
33
|
}
|
package/.eslintrc.cjs
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
'env': {
|
|
3
|
-
'es6': true,
|
|
4
|
-
'node': true,
|
|
5
|
-
'mocha': true
|
|
6
|
-
},
|
|
7
|
-
'parserOptions': {
|
|
8
|
-
'ecmaVersion': 2022,
|
|
9
|
-
'sourceType': 'module'
|
|
10
|
-
},
|
|
11
|
-
'extends': 'eslint:recommended',
|
|
12
|
-
'rules': {
|
|
13
|
-
'indent': [
|
|
14
|
-
'error',
|
|
15
|
-
'tab',
|
|
16
|
-
{ 'SwitchCase': 1 }
|
|
17
|
-
],
|
|
18
|
-
'linebreak-style': [
|
|
19
|
-
'error',
|
|
20
|
-
'unix'
|
|
21
|
-
],
|
|
22
|
-
'quotes': [
|
|
23
|
-
'error',
|
|
24
|
-
'single'
|
|
25
|
-
],
|
|
26
|
-
'semi': [
|
|
27
|
-
'error',
|
|
28
|
-
'always'
|
|
29
|
-
],
|
|
30
|
-
'no-console': [
|
|
31
|
-
'error', {
|
|
32
|
-
'allow': [
|
|
33
|
-
'warn',
|
|
34
|
-
'error',
|
|
35
|
-
'info'
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
'no-unused-vars': [
|
|
40
|
-
'error', {
|
|
41
|
-
'argsIgnorePattern': '^_'
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
'no-empty': [
|
|
45
|
-
'error', {
|
|
46
|
-
'allowEmptyCatch': true
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
'no-trailing-spaces': [
|
|
50
|
-
'error', {
|
|
51
|
-
'ignoreComments': true
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
'require-atomic-updates': 'off',
|
|
55
|
-
'no-implicit-globals': [
|
|
56
|
-
'error'
|
|
57
|
-
],
|
|
58
|
-
'eol-last': [
|
|
59
|
-
'error',
|
|
60
|
-
'always'
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
};
|