@salesforce-ux/slds-linter 0.0.4 → 0.0.6
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/build/setup.js +6 -2
- package/package.json +1 -1
- package/build/.eslintrc.yml +0 -31
- package/build/.stylelintrc.yml +0 -52
package/build/setup.js
CHANGED
|
@@ -5,13 +5,17 @@ import { fileURLToPath } from 'url';
|
|
|
5
5
|
// Define __dirname for ES modules
|
|
6
6
|
const __filename = fileURLToPath(import.meta.url);
|
|
7
7
|
const __dirname = path.dirname(__filename);
|
|
8
|
+
const eslintConfigPath = fileURLToPath(await import.meta.resolve('@salesforce-ux/eslint-plugin-slds/build/.eslintrc.yml'));
|
|
9
|
+
const stylelintConfigPath = fileURLToPath(await import.meta.resolve('@salesforce-ux/stylelint-plugin-slds/build/.stylelintrc.yml'));
|
|
10
|
+
// Define the destination path where you want to copy the file
|
|
11
|
+
path.resolve(__dirname, 'config-copy.json');
|
|
8
12
|
const config = [
|
|
9
13
|
{
|
|
10
|
-
"sourcePath":
|
|
14
|
+
"sourcePath": path.resolve(__dirname, eslintConfigPath),
|
|
11
15
|
"destinationPath": ".eslintrc.yml"
|
|
12
16
|
},
|
|
13
17
|
{
|
|
14
|
-
"sourcePath":
|
|
18
|
+
"sourcePath": path.resolve(__dirname, stylelintConfigPath),
|
|
15
19
|
"destinationPath": ".stylelintrc.yml"
|
|
16
20
|
}
|
|
17
21
|
];
|
package/package.json
CHANGED
package/build/.eslintrc.yml
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
root: true
|
|
2
|
-
env:
|
|
3
|
-
es2021: true
|
|
4
|
-
node: true
|
|
5
|
-
parserOptions:
|
|
6
|
-
ecmaVersion: 2021
|
|
7
|
-
sourceType: module
|
|
8
|
-
ignorePatterns:
|
|
9
|
-
- "node_modules/"
|
|
10
|
-
overrides:
|
|
11
|
-
- files:
|
|
12
|
-
- "*.html"
|
|
13
|
-
- "*.cmp"
|
|
14
|
-
parser: "@html-eslint/parser"
|
|
15
|
-
plugins:
|
|
16
|
-
- "@salesforce-ux/slds"
|
|
17
|
-
rules:
|
|
18
|
-
"@salesforce-ux/sf-sds/no-bem-class":
|
|
19
|
-
- "error"
|
|
20
|
-
"@salesforce-ux/sf-sds/no-deprecated-slds-classes":
|
|
21
|
-
- "error"
|
|
22
|
-
|
|
23
|
-
- files:
|
|
24
|
-
- "*.js"
|
|
25
|
-
- "*.json"
|
|
26
|
-
excludedFiles: "*.js"
|
|
27
|
-
rules:
|
|
28
|
-
"@salesforce-ux/no-bem-class":
|
|
29
|
-
- "error"
|
|
30
|
-
"@salesforce-ux/sf-sds/no-deprecated-slds-classes":
|
|
31
|
-
- "error"
|
package/build/.stylelintrc.yml
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
plugins:
|
|
2
|
-
- "@salesforce-ux/stylelint-plugin-slds"
|
|
3
|
-
|
|
4
|
-
overrides:
|
|
5
|
-
- files:
|
|
6
|
-
- "**/*.css"
|
|
7
|
-
- "**/*.scss"
|
|
8
|
-
customSyntax: "postcss"
|
|
9
|
-
rules:
|
|
10
|
-
sf-sds/no-slds-class-overrides:
|
|
11
|
-
- true
|
|
12
|
-
- severity: warning
|
|
13
|
-
sf-sds/no-important-tag:
|
|
14
|
-
- true
|
|
15
|
-
- severity: warning
|
|
16
|
-
# sf-sds/no-hardcoded-values:
|
|
17
|
-
# - true
|
|
18
|
-
# - severity: error
|
|
19
|
-
sf-sds/no-hardcoded-values-slds2:
|
|
20
|
-
- true
|
|
21
|
-
- severity: error
|
|
22
|
-
sf-sds/enforce-utility-classes:
|
|
23
|
-
- true
|
|
24
|
-
sf-sds/no-aura-tokens:
|
|
25
|
-
- true
|
|
26
|
-
sf-sds/lwc-to-slds-token:
|
|
27
|
-
- true
|
|
28
|
-
sf-sds/enforce-bem-usage:
|
|
29
|
-
- true
|
|
30
|
-
sf-sds/no-deprecated-slds-classes:
|
|
31
|
-
- true
|
|
32
|
-
sf-sds/no-deprecated-slds-hooks:
|
|
33
|
-
- true
|
|
34
|
-
sf-sds/no-lwc-custom-properties:
|
|
35
|
-
- true
|
|
36
|
-
sf-sds/no-sds-custom-properties:
|
|
37
|
-
- true
|
|
38
|
-
sf-sds/no-slds-private-var:
|
|
39
|
-
- true
|
|
40
|
-
# sf-sds/do-not-use-calc-function:
|
|
41
|
-
# - true
|
|
42
|
-
sf-sds/enforce-sds-to-slds-hooks:
|
|
43
|
-
- true
|
|
44
|
-
- severity: error
|
|
45
|
-
|
|
46
|
-
sourceMap:
|
|
47
|
-
- false
|
|
48
|
-
|
|
49
|
-
- files:
|
|
50
|
-
- "**/*.html"
|
|
51
|
-
customSyntax: "postcss-html"
|
|
52
|
-
rules: {}
|