@checkdigit/eslint-athena-plugin 1.0.0-PR.2-e0d4 → 1.0.0-PR.2-832f
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-mjs/index.mjs +9 -9
- package/package.json +1 -1
- package/src/index.ts +8 -8
package/dist-mjs/index.mjs
CHANGED
|
@@ -14,34 +14,34 @@ var configs = {
|
|
|
14
14
|
{
|
|
15
15
|
files: ["**/*.ts"],
|
|
16
16
|
plugins: {
|
|
17
|
-
"@checkdigit": plugin
|
|
17
|
+
"@checkdigit-athena": plugin
|
|
18
18
|
},
|
|
19
19
|
rules: {
|
|
20
|
-
[`@checkdigit/${athenaRuleId}`]: "error"
|
|
20
|
+
[`@checkdigit-athena/${athenaRuleId}`]: "error"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
files: ["**/*.sql"],
|
|
25
|
-
plugins: { "@checkdigit": plugin },
|
|
25
|
+
plugins: { "@checkdigit-athena": plugin },
|
|
26
26
|
languageOptions: { parser: { parseForESLint } },
|
|
27
|
-
rules: { [`@checkdigit/${sqlFileRuleId}`]: "error" }
|
|
27
|
+
rules: { [`@checkdigit-athena/${sqlFileRuleId}`]: "error" }
|
|
28
28
|
}
|
|
29
29
|
],
|
|
30
30
|
recommended: [
|
|
31
31
|
{
|
|
32
32
|
files: ["**/*.ts"],
|
|
33
33
|
plugins: {
|
|
34
|
-
"@checkdigit": plugin
|
|
34
|
+
"@checkdigit-athena": plugin
|
|
35
35
|
},
|
|
36
36
|
rules: {
|
|
37
|
-
[`@checkdigit/${athenaRuleId}`]: "off"
|
|
37
|
+
[`@checkdigit-athena/${athenaRuleId}`]: "off"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
files: ["**/*.sql"],
|
|
42
|
-
plugins: { "@checkdigit": plugin },
|
|
42
|
+
plugins: { "@checkdigit-athena": plugin },
|
|
43
43
|
languageOptions: { parser: { parseForESLint } },
|
|
44
|
-
rules: { [`@checkdigit/${sqlFileRuleId}`]: "off" }
|
|
44
|
+
rules: { [`@checkdigit-athena/${sqlFileRuleId}`]: "off" }
|
|
45
45
|
}
|
|
46
46
|
]
|
|
47
47
|
};
|
|
@@ -53,4 +53,4 @@ var index_default = defaultToExport;
|
|
|
53
53
|
export {
|
|
54
54
|
index_default as default
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzIl0sCiAgIm1hcHBpbmdzIjogIjtBQVVBLE9BQU8sVUFBVSxVQUFVLG9CQUFvQjtBQUMvQyxPQUFPLFdBQVcsVUFBVSxxQkFBcUI7QUFDakQsU0FBUyxzQkFBc0I7QUFFL0IsSUFBTSxRQUFzRDtBQUFBLEVBQzFELENBQUMsWUFBWSxHQUFHO0FBQUEsRUFDaEIsQ0FBQyxhQUFhLEdBQUc7QUFDbkI7QUFFQSxJQUFNLFNBQXFDO0FBQUEsRUFDekM7QUFDRjtBQUVBLElBQU0sVUFBd0Q7QUFBQSxFQUM1RCxLQUFLO0FBQUEsSUFDSDtBQUFBLE1BQ0UsT0FBTyxDQUFDLFNBQVM7QUFBQSxNQUNqQixTQUFTO0FBQUEsUUFDUCxzQkFBc0I7QUFBQSxNQUN4QjtBQUFBLE1BQ0EsT0FBTztBQUFBLFFBQ0wsQ0FBQyxzQkFBc0IsWUFBWSxFQUFFLEdBQUc7QUFBQSxNQUMxQztBQUFBLElBQ0Y7QUFBQSxJQUNBO0FBQUEsTUFDRSxPQUFPLENBQUMsVUFBVTtBQUFBLE1BQ2xCLFNBQVMsRUFBRSxzQkFBc0IsT0FBTztBQUFBLE1BQ3hDLGlCQUFpQixFQUFFLFFBQVEsRUFBRSxlQUFlLEVBQUU7QUFBQSxNQUM5QyxPQUFPLEVBQUUsQ0FBQyxzQkFBc0IsYUFBYSxFQUFFLEdBQUcsUUFBUTtBQUFBLElBQzVEO0FBQUEsRUFDRjtBQUFBLEVBQ0EsYUFBYTtBQUFBLElBQ1g7QUFBQSxNQUNFLE9BQU8sQ0FBQyxTQUFTO0FBQUEsTUFDakIsU0FBUztBQUFBLFFBQ1Asc0JBQXNCO0FBQUEsTUFDeEI7QUFBQSxNQUNBLE9BQU87QUFBQSxRQUNMLENBQUMsc0JBQXNCLFlBQVksRUFBRSxHQUFHO0FBQUEsTUFDMUM7QUFBQSxJQUNGO0FBQUEsSUFDQTtBQUFBLE1BQ0UsT0FBTyxDQUFDLFVBQVU7QUFBQSxNQUNsQixTQUFTLEVBQUUsc0JBQXNCLE9BQU87QUFBQSxNQUN4QyxpQkFBaUIsRUFBRSxRQUFRLEVBQUUsZUFBZSxFQUFFO0FBQUEsTUFDOUMsT0FBTyxFQUFFLENBQUMsc0JBQXNCLGFBQWEsRUFBRSxHQUFHLE1BQU07QUFBQSxJQUMxRDtBQUFBLEVBQ0Y7QUFDRjtBQUVBLElBQU0sa0JBRUY7QUFBQSxFQUNGLEdBQUc7QUFBQSxFQUNIO0FBQ0Y7QUFDQSxJQUFPLGdCQUFROyIsCiAgIm5hbWVzIjogW10KfQo=
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@checkdigit/eslint-athena-plugin","version":"1.0.0-PR.2-
|
|
1
|
+
{"name":"@checkdigit/eslint-athena-plugin","version":"1.0.0-PR.2-832f","description":"Check Digit eslint plugins to enforce best practices for projects using Athena SQL.","keywords":["eslint","eslintplugin"],"homepage":"https://github.com/checkdigit/eslint-athena-plugin#readme","bugs":{"url":"https://github.com/checkdigit/eslint-athena-plugin/issues"},"repository":{"type":"git","url":"https://github.com/checkdigit/eslint-athena-plugin"},"license":"MIT","author":"Check Digit, LLC","sideEffects":false,"type":"module","exports":{".":{"types":"./dist-types/index.d.ts","import":"./dist-mjs/index.mjs","default":"./dist-mjs/index.mjs"}},"files":["src","dist-types","dist-mjs","!src/**/test/**","!src/**/*.test.ts","!src/**/*.spec.ts","!dist-types/**/test/**","!dist-types/**/*.test.d.ts","!dist-types/**/*.spec.d.ts","!dist-mjs/**/test/**","!dist-mjs/**/*.test.mjs","!dist-mjs/**/*.spec.mjs","SECURITY.md"],"scripts":{"build:dist-mjs":"rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs","build:dist-types":"rimraf dist-types && npx builder --type=types --outDir=dist-types","ci:compile":"tsc --noEmit","ci:coverage":"NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=true","ci:lint":"npm run lint","ci:style":"npm run prettier","ci:test":"NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=false","lint":"eslint --max-warnings 0 .","lint:fix":"eslint --max-warnings 0 --fix .","peggy":"for file in ./src/peggy/*.peggy; do peggy \"$file\" --format es --output \"${file%.peggy}-peggy.ts\"; done","peggy-watch":"for file in ./src/peggy/*.peggy; do peggy \"$file\" --format=es --watch --output=\"${file%.peggy}-peggy.ts\"; done","prepare":"","prepublishOnly":"npm run build:dist-types && npm run build:dist-mjs","prettier":"prettier --ignore-path .gitignore --ignore-path .prettierignore --list-different .","prettier:fix":"prettier --ignore-path .gitignore --ignore-path .prettierignore --write .","test":"npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style"},"prettier":"@checkdigit/prettier-config","jest":{"preset":"@checkdigit/jest-config"},"dependencies":{"@apidevtools/json-schema-ref-parser":"^15.3.6","@typescript-eslint/type-utils":"^8.61.1","@typescript-eslint/utils":"^8.61.1","ajv":"^8.20.0","debug":"^4.4.3","glob":"^13.0.6","http-status-codes":"^2.3.0","js-yaml":"^4.2.0","json-pointer":"^0.6.2","jsonpath-plus":"^10.4.0","ts-api-utils":"^2.5.0"},"devDependencies":{"@checkdigit/jest-config":"^6.0.2","@checkdigit/prettier-config":"^8.0.0","@checkdigit/typescript-config":"10.0.0","@eslint/js":"^9.37.0","@types/debug":"^4.1.13","@types/eslint":"^9.6.1","@types/eslint-config-prettier":"^6.11.3","@types/js-yaml":"^4.0.9","@types/json-pointer":"^1.0.34","@typescript-eslint/parser":"^8.61.1","@typescript-eslint/rule-tester":"^8.61.1","eslint":"^9.37.0","eslint-config-prettier":"^10.1.8","eslint-import-resolver-typescript":"^4.4.5","eslint-plugin-eslint-plugin":"^6.4.0","eslint-plugin-import":"^2.32.0","eslint-plugin-no-only-tests":"^3.4.0","eslint-plugin-no-secrets":"^2.3.3","eslint-plugin-node":"^11.1.0","eslint-plugin-sonarjs":"^1.0.4","openapi-types":"^12.1.3","peggy":"^4.2.0","rimraf":"^6.1.3","typescript-eslint":"^8.61.1"},"peerDependencies":{"eslint":">=9 <10"},"engines":{"node":">=24.14.1"},"service":{"api":{"root":"src","endpoints":["api/v1","api/v2"]}}}
|
package/src/index.ts
CHANGED
|
@@ -26,34 +26,34 @@ const configs: Record<string, TSESLint.FlatConfig.Config[]> = {
|
|
|
26
26
|
{
|
|
27
27
|
files: ['**/*.ts'],
|
|
28
28
|
plugins: {
|
|
29
|
-
'@checkdigit': plugin,
|
|
29
|
+
'@checkdigit-athena': plugin,
|
|
30
30
|
},
|
|
31
31
|
rules: {
|
|
32
|
-
[`@checkdigit/${athenaRuleId}`]: 'error',
|
|
32
|
+
[`@checkdigit-athena/${athenaRuleId}`]: 'error',
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
files: ['**/*.sql'],
|
|
37
|
-
plugins: { '@checkdigit': plugin },
|
|
37
|
+
plugins: { '@checkdigit-athena': plugin },
|
|
38
38
|
languageOptions: { parser: { parseForESLint } },
|
|
39
|
-
rules: { [`@checkdigit/${sqlFileRuleId}`]: 'error' },
|
|
39
|
+
rules: { [`@checkdigit-athena/${sqlFileRuleId}`]: 'error' },
|
|
40
40
|
},
|
|
41
41
|
],
|
|
42
42
|
recommended: [
|
|
43
43
|
{
|
|
44
44
|
files: ['**/*.ts'],
|
|
45
45
|
plugins: {
|
|
46
|
-
'@checkdigit': plugin,
|
|
46
|
+
'@checkdigit-athena': plugin,
|
|
47
47
|
},
|
|
48
48
|
rules: {
|
|
49
|
-
[`@checkdigit/${athenaRuleId}`]: 'off',
|
|
49
|
+
[`@checkdigit-athena/${athenaRuleId}`]: 'off',
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
files: ['**/*.sql'],
|
|
54
|
-
plugins: { '@checkdigit': plugin },
|
|
54
|
+
plugins: { '@checkdigit-athena': plugin },
|
|
55
55
|
languageOptions: { parser: { parseForESLint } },
|
|
56
|
-
rules: { [`@checkdigit/${sqlFileRuleId}`]: 'off' },
|
|
56
|
+
rules: { [`@checkdigit-athena/${sqlFileRuleId}`]: 'off' },
|
|
57
57
|
},
|
|
58
58
|
],
|
|
59
59
|
};
|