@wistia/eslint-config 0.3.3 → 0.3.4-beta.a49e583c.80a45fe
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/base.js +1 -1
- package/jest.js +1 -1
- package/package.json +1 -1
- package/react.js +1 -1
- package/styled-components.js +1 -1
- package/stylelint/base.js +1 -1
- package/stylelint/scss.js +1 -1
- package/stylelint/styled-components.js +4 -1
- package/stylelintRules/styled-components.js +1 -0
- package/testing-library.js +1 -1
package/base.js
CHANGED
package/jest.js
CHANGED
package/package.json
CHANGED
package/react.js
CHANGED
|
@@ -4,8 +4,8 @@ const reactRules = require('./eslintRules/react');
|
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
parser: '@babel/eslint-parser',
|
|
7
|
+
plugins: ['eslint-plugin-prettier'],
|
|
7
8
|
extends: ['airbnb', 'airbnb/hooks', 'prettier'],
|
|
8
|
-
plugins: ['prettier'],
|
|
9
9
|
rules: {
|
|
10
10
|
...commonRules,
|
|
11
11
|
...a11yRules,
|
package/styled-components.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const styledComponentsRules = require('./eslintRules/styled-components');
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
plugins: ['better-styled-components', 'styled-components-a11y'],
|
|
4
|
+
plugins: ['eslint-plugin-better-styled-components', 'eslint-plugin-styled-components-a11y'],
|
|
5
5
|
extends: ['plugin:styled-components-a11y/strict'],
|
|
6
6
|
rules: {
|
|
7
7
|
...styledComponentsRules,
|
package/stylelint/base.js
CHANGED
package/stylelint/scss.js
CHANGED
|
@@ -2,7 +2,7 @@ const commonRules = require('../stylelintRules/common');
|
|
|
2
2
|
const scssRules = require('../stylelintRules/scss');
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
|
-
plugins: ['stylelint-prettier', 'stylelint-scss'],
|
|
5
|
+
plugins: ['eslint-plugin-stylelint-prettier', 'eslint-plugin-stylelint-scss'],
|
|
6
6
|
extends: ['stylelint-config-standard-scss'], // see: https://github.com/stylelint-scss/stylelint-config-standard-scss/blob/main/index.js
|
|
7
7
|
rules: {
|
|
8
8
|
...commonRules,
|
|
@@ -2,7 +2,10 @@ const commonRules = require('../stylelintRules/common');
|
|
|
2
2
|
const styledComponentRules = require('../stylelintRules/styled-components');
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
|
-
plugins: [
|
|
5
|
+
plugins: [
|
|
6
|
+
'eslint-plugin-stylelint-prettier',
|
|
7
|
+
'eslint-plugin-stylelint-declaration-block-no-ignored-properties',
|
|
8
|
+
],
|
|
6
9
|
extends: ['stylelint-config-standard-scss', 'stylelint-config-prettier'],
|
|
7
10
|
customSyntax: 'postcss-scss',
|
|
8
11
|
processors: ['stylelint-processor-styled-components'],
|
|
@@ -14,6 +14,7 @@ module.exports = {
|
|
|
14
14
|
'selector-class-pattern': '^[a-zA-Z0-9-]+(-[a-zA-Z0-9]+)*$',
|
|
15
15
|
'selector-id-pattern': '^[a-zA-Z0-9-]+(-[a-zA-Z0-9]+)*$',
|
|
16
16
|
// these selectors are used as placeholders by styled-components preprocessor
|
|
17
|
+
'selector-type-case': ['lower', { ignoreTypes: ['$dummyValue'] }],
|
|
17
18
|
'selector-type-no-unknown': [true, { ignoreTypes: ['$dummyValue', '/^-styled-/'] }],
|
|
18
19
|
'value-keyword-case': [
|
|
19
20
|
'lower',
|