-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support flat config * fix: wrong parserOptions * test: add test for flat/recommended * fix: add name for debug info for eslint config inspector * 3.16.0-beta.0 * fix: work-around blocking with `fg.sync` * fix: eslint v8.x and v9 compatible * 3.16.0-beta.1 --------- Co-authored-by: francoismassart <francois.massart@gmail.com>
- Loading branch information
1 parent
4d04a96
commit 7a19f92
Showing
21 changed files
with
727 additions
and
1,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/node_modules | ||
node_modules | ||
.DS_Store | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* @fileoverview Recommended coniguration for flat style | ||
* @see https://eslint.org/docs/latest/use/configure/configuration-files-new | ||
* @author François Massart | ||
*/ | ||
'use strict'; | ||
|
||
const rules = require('./rules'); | ||
|
||
module.exports = [ | ||
{ | ||
name: 'tailwindcss:base', | ||
plugins: { | ||
get tailwindcss() { | ||
return require('../index'); | ||
}, | ||
}, | ||
languageOptions: { | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'tailwindcss:rules', | ||
rules, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* @fileoverview Recommended coniguration for legacy style | ||
* @see https://eslint.org/docs/latest/use/configure/configuration-files | ||
* @author François Massart | ||
*/ | ||
'use strict'; | ||
|
||
const rules = require('./rules'); | ||
|
||
module.exports = { | ||
plugins: ['tailwindcss'], | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
rules, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* @fileoverview Default rules configuration | ||
* @author François Massart | ||
*/ | ||
|
||
module.exports = { | ||
'tailwindcss/classnames-order': 'warn', | ||
'tailwindcss/enforces-negative-arbitrary-values': 'warn', | ||
'tailwindcss/enforces-shorthand': 'warn', | ||
'tailwindcss/migration-from-tailwind-2': 'warn', | ||
'tailwindcss/no-arbitrary-value': 'off', | ||
'tailwindcss/no-custom-classname': 'warn', | ||
'tailwindcss/no-contradicting-classname': 'error', | ||
'tailwindcss/no-unnecessary-arbitrary-value': 'warn', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.