@master/eslint-plugin-css 2.0.0-beta.178 → 2.0.0-beta.180

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.
@@ -7,7 +7,6 @@
7
7
 
8
8
  // Modified from https://github.com/francoismassart/eslint-plugin-tailwindcss
9
9
 
10
- const docsUrl = require('../util/docsUrl')
11
10
  const astUtil = require('../util/ast')
12
11
  const removeDuplicatesFromClassnamesAndWhitespaces = require('../util/removeDuplicatesFromClassnamesAndWhitespaces')
13
12
  const getOption = require('../util/settings')
@@ -21,15 +20,15 @@ const MasterCSS = require('@master/css').MasterCSS
21
20
 
22
21
  // Predefine message for use in context.report conditional.
23
22
  // messageId will still be usable in tests.
24
- const INVALID_CLASSNAMES_ORDER_MSG = 'Invalid Master CSS classnames order'
23
+ const INVALID_CLASSNAMES_ORDER_MSG = 'No consistent class order followed.'
25
24
 
26
25
  module.exports = {
27
26
  meta: {
28
27
  docs: {
29
- description: 'Enforce a consistent and logical order of the Master CSS classnames',
28
+ description: 'Enforce a consistent and logical order of classes',
30
29
  category: 'Stylistic Issues',
31
30
  recommended: false,
32
- url: docsUrl('class-order'),
31
+ url: 'https://beta.css.master.co/docs/code-linting#enforce-a-consistent-and-logical-order-of-classes',
33
32
  },
34
33
  messages: {
35
34
  invalidOrder: INVALID_CLASSNAMES_ORDER_MSG,
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@master/eslint-plugin-css","scripts":{"test":"mocha tests --recursive --timeout 10000"},"keywords":["mastercss","eslint","eslintplugin"],"license":"MIT","description":"Master CSS ESLint Plugin","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/eslint-plugin"},"sideEffects":false,"main":"./lib/index.js","exports":"./lib/index.js","publishConfig":{"access":"public"},"dependencies":{"@master/css":"^2.0.0-beta.178","requireindex":"^1.2.0","explore-config":"^2.2.10"},"devDependencies":{"@angular-eslint/template-parser":"^16.2.0","@typescript-eslint/parser":"^5.50.0","@types/node":"^20.6.0","mocha":"^10.2.0","eslint":"^7.1.0","vue-eslint-parser":"^9.3.1"},"version":"2.0.0-beta.178"}
1
+ {"name":"@master/eslint-plugin-css","scripts":{"test":"mocha tests --recursive --timeout 10000"},"keywords":["mastercss","eslint","eslintplugin"],"license":"MIT","description":"Master CSS ESLint Plugin","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/eslint-plugin"},"sideEffects":false,"main":"./lib/index.js","exports":"./lib/index.js","publishConfig":{"access":"public"},"dependencies":{"@master/css":"^2.0.0-beta.180","requireindex":"^1.2.0","explore-config":"^2.2.10"},"devDependencies":{"@angular-eslint/template-parser":"^16.2.0","@typescript-eslint/parser":"^5.50.0","@types/node":"^20.6.0","mocha":"^10.2.0","eslint":"^7.1.0","vue-eslint-parser":"^9.3.1"},"version":"2.0.0-beta.180"}
@@ -1,8 +0,0 @@
1
- 'use strict'
2
-
3
- // Copied from https://github.com/yannickcr/eslint-plugin-react/blob/master/lib/util/docsUrl.js
4
- function docsUrl(ruleName) {
5
- return `https://github.com/master-co/css/tree/beta/packages/eslint-plugin/docs/rules/${ruleName}.md`
6
- }
7
-
8
- module.exports = docsUrl