chore: add configs in package.json
This commit is contained in:
parent
8a8cb64099
commit
3d81ecb6cc
99
package.json
99
package.json
|
|
@ -10,6 +10,98 @@
|
||||||
"preview": "astro build && wrangler pages dev ./dist",
|
"preview": "astro build && wrangler pages dev ./dist",
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=16"
|
||||||
|
},
|
||||||
|
"packageManager": "yarn@3.2.3",
|
||||||
|
"prettier": {
|
||||||
|
"printWidth": 80,
|
||||||
|
"semi": true,
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"arrowParens": "avoid",
|
||||||
|
"endOfLine": "auto",
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": "*.css",
|
||||||
|
"options": {
|
||||||
|
"tabWidth": 4,
|
||||||
|
"printWidth": 120
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": "*.json",
|
||||||
|
"options": {
|
||||||
|
"printWidth": 200
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"eslintIgnore": ["/node_modules", "/build"],
|
||||||
|
"eslintConfig": {
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"es2021": true,
|
||||||
|
"jest": true
|
||||||
|
},
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"jsx": true
|
||||||
|
},
|
||||||
|
"ecmaVersion": "latest",
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"react": {
|
||||||
|
"version": "detect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"JSX": "readonly",
|
||||||
|
"NodeJS": "readonly",
|
||||||
|
"MutationCallback": "readonly"
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"eslint:recommended",
|
||||||
|
"plugin:react/recommended",
|
||||||
|
"plugin:react/jsx-runtime",
|
||||||
|
"plugin:storybook/recommended",
|
||||||
|
"prettier"
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
"jest",
|
||||||
|
"react",
|
||||||
|
"@typescript-eslint",
|
||||||
|
"prettier",
|
||||||
|
"react-hooks",
|
||||||
|
"jsx-a11y"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"endOfLine": "off",
|
||||||
|
"react/no-unknown-property": "off",
|
||||||
|
"react/require-default-props": "off",
|
||||||
|
"no-unused-vars": "off",
|
||||||
|
"no-extra-boolean-cast": "off",
|
||||||
|
"no-console": "off",
|
||||||
|
"no-shadow": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stylelint": {
|
||||||
|
"extends": [
|
||||||
|
"stylelint-config-recommended",
|
||||||
|
"stylelint-config-prettier",
|
||||||
|
"stylelint-config-idiomatic-order"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"at-rule-no-unknown": [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
"ignoreAtRules": ["extend", "function", "include", "mixin", "return"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/cloudflare": "^6.3.0",
|
"@astrojs/cloudflare": "^6.3.0",
|
||||||
"@astrojs/rss": "^2.4.1",
|
"@astrojs/rss": "^2.4.1",
|
||||||
|
|
@ -20,6 +112,13 @@
|
||||||
"astro": "^2.5.0"
|
"astro": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@commitlint/cli": "17.3.0",
|
||||||
|
"@commitlint/config-conventional": "17.3.0",
|
||||||
|
"husky": "8.0.2",
|
||||||
|
"stylelint": "14.15.0",
|
||||||
|
"stylelint-config-idiomatic-order": "9.0.0",
|
||||||
|
"stylelint-config-prettier": "9.0.4",
|
||||||
|
"stylelint-config-recommended": "9.0.0",
|
||||||
"wrangler": "^3.0.1"
|
"wrangler": "^3.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue