mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-04-28 20:25:09 +08:00
66 lines
1.4 KiB
JavaScript
66 lines
1.4 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: "@typescript-eslint/parser",
|
|
plugins: ["@typescript-eslint", "@cspell"],
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:unicorn/recommended",
|
|
"prettier",
|
|
"plugin:@cspell/recommended",
|
|
],
|
|
env: {
|
|
node: true,
|
|
},
|
|
ignorePatterns: ["dist/*", "types.d.ts", "coverage/*", "website/build/*"],
|
|
rules: {
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{ ignoreRestSiblings: true },
|
|
],
|
|
"unicorn/numeric-separators-style": "off",
|
|
"unicorn/prevent-abbreviations": [
|
|
"error",
|
|
{
|
|
allowList: {
|
|
fn: true,
|
|
prop: true,
|
|
Prop: true,
|
|
props: true,
|
|
Props: true,
|
|
ref: true,
|
|
Ref: true,
|
|
args: true,
|
|
params: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: [
|
|
"*rc.js",
|
|
"*.config.js",
|
|
"plugin.js",
|
|
"babel.js",
|
|
"postcss.js",
|
|
"plugin.js",
|
|
"commitlint.config.js",
|
|
"tailwind/css.js",
|
|
"tailwind/native.js",
|
|
],
|
|
rules: {
|
|
"unicorn/prefer-module": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
},
|
|
},
|
|
{
|
|
files: ["packages/website/*.js"],
|
|
rules: {
|
|
"unicorn/prefer-module": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
},
|
|
},
|
|
],
|
|
};
|