@gitlab/eslint-plugin 21.3.1 → 21.4.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/.mocharc.yml ADDED
@@ -0,0 +1 @@
1
+ spec: tests/**/*.spec.js
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @gitlab/eslint-plugin
2
2
 
3
+ ## 21.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 60a52b8: Add `tailwindcss/no-arbitrary-value` CSS rule to prevent CSS bundle size growth and enforce our design system.
8
+
3
9
  ## 21.3.1
4
10
 
5
11
  ### Patch Changes
@@ -338,9 +338,7 @@ module.exports = {
338
338
  // https://eslint.org/docs/rules/no-bitwise
339
339
  'no-bitwise': 'error',
340
340
 
341
- // disallow use of the continue statement
342
- // https://eslint.org/docs/rules/no-continue
343
- 'no-continue': 'error',
341
+ 'no-continue': 'off',
344
342
 
345
343
  // disallow comments inline after code
346
344
  'no-inline-comments': 'off',
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ plugins: ['@gitlab', 'tailwindcss'],
3
+ rules: {
4
+ '@gitlab/tailwind-no-interpolation': 'error',
5
+ '@gitlab/vue-tailwind-no-interpolation': 'error',
6
+ '@gitlab/tailwind-no-max-width-media-queries': 'error',
7
+ '@gitlab/vue-tailwind-no-max-width-media-queries': 'error',
8
+ 'tailwindcss/no-arbitrary-value': 'error',
9
+ },
10
+ };
package/lib/index.js CHANGED
@@ -38,6 +38,7 @@ module.exports = {
38
38
  default: require('./configs/default.js'),
39
39
  i18n: require('./configs/i18n.js'),
40
40
  jest: require('./configs/jest.js'),
41
+ tailwind: require('./configs/tailwind.js'),
41
42
  typescript: require('./configs/typescript.js'),
42
43
  vue: require('./configs/vue.js'),
43
44
  },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@gitlab/eslint-plugin",
3
- "version": "21.3.1",
3
+ "version": "21.4.0",
4
4
  "description": "GitLab package for our custom eslint rules",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
7
7
  "createRule": "./scripts/createRule.js && yarn update",
8
8
  "update": "./scripts/updateFiles.js && prettier --write lib/index.js",
9
9
  "commit": "npx git-cz",
10
- "test": "jest tests"
10
+ "test": "mocha"
11
11
  },
12
12
  "repository": "https://gitlab.com/gitlab-org/frontend/eslint-plugin.git",
13
13
  "keywords": [
@@ -36,9 +36,10 @@
36
36
  "eslint-plugin-import": "^2.29.1",
37
37
  "eslint-plugin-jest": "^28.6.0",
38
38
  "eslint-plugin-promise": "^7.0.0",
39
+ "eslint-plugin-tailwindcss": "^3.18.3",
39
40
  "eslint-plugin-unicorn": "^55.0.0",
40
- "eslint-plugin-vue": "^9.27.0",
41
- "lodash": "^4.17.21",
41
+ "eslint-plugin-vue": "^9.33.0",
42
+ "lodash": "^4.18.1",
42
43
  "vue-eslint-parser": "^9.4.3"
43
44
  },
44
45
  "peerDependencies": {
@@ -48,7 +49,7 @@
48
49
  "@changesets/cli": "^2.29.8",
49
50
  "eslint": "^8.57.0",
50
51
  "glob": "^7.2.0",
51
- "jest": "^27.5.1",
52
+ "mocha": "^11.7.5",
52
53
  "prettier": "^2.6.1",
53
54
  "yarn-deduplicate": "^6.0.2"
54
55
  }
@@ -1,8 +0,0 @@
1
- # Changesets
2
-
3
- Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
- with multi-package repos, or single-package repos to help you version and publish your code. You can
5
- find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6
-
7
- We have a quick list of common questions to get you started engaging with this project in
8
- [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
3
- "changelog": "@changesets/cli/changelog",
4
- "commit": false,
5
- "fixed": [],
6
- "linked": [],
7
- "access": "public",
8
- "baseBranch": "main",
9
- "updateInternalDependencies": "patch",
10
- "ignore": []
11
- }
@@ -1,25 +0,0 @@
1
- {
2
- "changesets": [
3
- {
4
- "releases": [
5
- {
6
- "name": "@gitlab/eslint-plugin",
7
- "type": "patch"
8
- }
9
- ],
10
- "summary": "No changes; identical to 21.3.0.",
11
- "id": "moody-months-glow"
12
- }
13
- ],
14
- "releases": [
15
- {
16
- "name": "@gitlab/eslint-plugin",
17
- "type": "patch",
18
- "oldVersion": "21.3.0",
19
- "changesets": [
20
- "moody-months-glow"
21
- ],
22
- "newVersion": "21.3.1"
23
- }
24
- ]
25
- }
package/jest.config.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- moduleFileExtensions: ['js'],
3
- transform: {
4
- '^.+\\.js$': ['babel-jest', { sourceType: 'script' }],
5
- },
6
- };