@atomicsmash/coding-standards 13.0.1 → 14.0.0-beta.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atomicsmash/coding-standards
2
2
 
3
+ ## 14.0.0-beta.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#346](https://github.com/AtomicSmash/packages/pull/346) [`b2e42a2`](https://github.com/AtomicSmash/packages/commit/b2e42a2364bd2abb427ae707de8f1f7c1a734f4d) Thanks [@cmg8ball](https://github.com/cmg8ball)! - Add tailwind rules for stylelint.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#346](https://github.com/AtomicSmash/packages/pull/346) [`b2e42a2`](https://github.com/AtomicSmash/packages/commit/b2e42a2364bd2abb427ae707de8f1f7c1a734f4d) Thanks [@cmg8ball](https://github.com/cmg8ball)! - Fix mjs index export.
12
+
13
+ - [#346](https://github.com/AtomicSmash/packages/pull/346) [`b2e42a2`](https://github.com/AtomicSmash/packages/commit/b2e42a2364bd2abb427ae707de8f1f7c1a734f4d) Thanks [@cmg8ball](https://github.com/cmg8ball)! - Update @rule order stylelint.
14
+
15
+ - Updated dependencies []:
16
+ - @atomicsmash/eslint-config@14.0.0-beta.0
17
+ - @atomicsmash/browserslist-config@14.0.0-beta.0
18
+
3
19
  ## 13.0.1
4
20
 
5
21
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomicsmash/coding-standards",
3
- "version": "13.0.1",
3
+ "version": "14.0.0-beta.0",
4
4
  "description": "A collection of coding standards configurations.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -8,8 +8,8 @@
8
8
  "@cspell/cspell-types": "^8.19.4"
9
9
  },
10
10
  "peerDependencies": {
11
- "@atomicsmash/browserslist-config": "^13.0.1",
12
- "@atomicsmash/eslint-config": "^13.0.1",
11
+ "@atomicsmash/browserslist-config": "^14.0.0-beta.0",
12
+ "@atomicsmash/eslint-config": "^14.0.0-beta.0",
13
13
  "@commitlint/cli": "^19.8.1",
14
14
  "@commitlint/config-conventional": "^19.8.1",
15
15
  "@wordpress/stylelint-config": "^23.16.0",
@@ -19,8 +19,8 @@ const commonRules = {
19
19
  "custom-properties",
20
20
  "dollar-variables",
21
21
  "declarations",
22
- "rules",
23
22
  "at-rules",
23
+ "rules",
24
24
  ],
25
25
  "selector-class-pattern": [
26
26
  "^([a-z][a-z0-9]*)([_-]+[a-z0-9]+)*$",
@@ -19,8 +19,8 @@ const commonRules = {
19
19
  "custom-properties",
20
20
  "dollar-variables",
21
21
  "declarations",
22
- "rules",
23
22
  "at-rules",
23
+ "rules",
24
24
  ],
25
25
  "selector-class-pattern": [
26
26
  "^([a-z][a-z0-9]*)([_-]+[a-z0-9]+)*$",
@@ -1,4 +1,5 @@
1
1
  module.exports = {
2
2
  classic: require("./classic.cjs"),
3
3
  themeJson: require("./theme-json.cjs"),
4
+ tailwind: require("./tailwind.cjs")
4
5
  };
@@ -1,3 +1,4 @@
1
- import { default as classicConfig } from "./classic.mjs";
2
- import { default as themeJsonConfig } from "./theme-json.mjs";
3
- export default { classicConfig, themeJsonConfig };
1
+ import { default as classic } from "./classic.mjs";
2
+ import { default as themeJson } from "./theme-json.mjs";
3
+ import { default as tailwind } from "./tailwind.mjs";
4
+ export default { classic, themeJson, tailwind };
@@ -0,0 +1,38 @@
1
+ module.exports = {
2
+ overrides: [
3
+ {
4
+ files: ["*.css", "**/*.css"],
5
+ rules: {
6
+ 'at-rule-no-unknown': [
7
+ true,
8
+ {
9
+ ignoreAtRules: [
10
+ 'tailwind',
11
+ 'apply',
12
+ 'variants',
13
+ 'responsive',
14
+ 'screen',
15
+ ],
16
+ },
17
+ ]
18
+ },
19
+ },
20
+ {
21
+ files: ["*.scss", "**/*.scss"],
22
+ rules: {
23
+ 'scss/at-rule-no-unknown': [
24
+ true,
25
+ {
26
+ ignoreAtRules: [
27
+ 'tailwind',
28
+ 'apply',
29
+ 'variants',
30
+ 'responsive',
31
+ 'screen',
32
+ ],
33
+ },
34
+ ]
35
+ },
36
+ },
37
+ ]
38
+ };
@@ -0,0 +1 @@
1
+ module.exports = require("./tailwind.cjs");
@@ -0,0 +1,38 @@
1
+ export default {
2
+ overrides: [
3
+ {
4
+ files: ["*.css", "**/*.css"],
5
+ rules: {
6
+ 'at-rule-no-unknown': [
7
+ true,
8
+ {
9
+ ignoreAtRules: [
10
+ 'tailwind',
11
+ 'apply',
12
+ 'variants',
13
+ 'responsive',
14
+ 'screen',
15
+ ],
16
+ },
17
+ ]
18
+ },
19
+ },
20
+ {
21
+ files: ["*.scss", "**/*.scss"],
22
+ rules: {
23
+ 'scss/at-rule-no-unknown': [
24
+ true,
25
+ {
26
+ ignoreAtRules: [
27
+ 'tailwind',
28
+ 'apply',
29
+ 'variants',
30
+ 'responsive',
31
+ 'screen',
32
+ ],
33
+ },
34
+ ]
35
+ },
36
+ },
37
+ ]
38
+ };