@salesforce-ux/slds-linter 0.0.5 → 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 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": "./.eslintrc.yml",
14
+ "sourcePath": path.resolve(__dirname, eslintConfigPath),
11
15
  "destinationPath": ".eslintrc.yml"
12
16
  },
13
17
  {
14
- "sourcePath": "./.stylelintrc.yml",
18
+ "sourcePath": path.resolve(__dirname, stylelintConfigPath),
15
19
  "destinationPath": ".stylelintrc.yml"
16
20
  }
17
21
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce-ux/slds-linter",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "SLDS Linter with both stylelint and eslint together",
5
5
  "main": "index.mjs",
6
6
  "workspaces": [
@@ -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/slds/no-bem-class":
19
- - "error"
20
- "@salesforce-ux/slds/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/slds/no-deprecated-slds-classes":
31
- - "error"
@@ -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
- slds/no-slds-class-overrides:
11
- - true
12
- - severity: warning
13
- slds/no-important-tag:
14
- - true
15
- - severity: warning
16
- # slds/no-hardcoded-values:
17
- # - true
18
- # - severity: error
19
- slds/no-hardcoded-values-slds2:
20
- - true
21
- - severity: error
22
- slds/enforce-utility-classes:
23
- - true
24
- slds/no-aura-tokens:
25
- - true
26
- slds/lwc-to-slds-token:
27
- - true
28
- slds/enforce-bem-usage:
29
- - true
30
- slds/no-deprecated-slds-classes:
31
- - true
32
- slds/no-deprecated-slds-hooks:
33
- - true
34
- slds/no-lwc-custom-properties:
35
- - true
36
- slds/no-sds-custom-properties:
37
- - true
38
- slds/no-slds-private-var:
39
- - true
40
- # slds/do-not-use-calc-function:
41
- # - true
42
- slds/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: {}