Created
November 21, 2023 13:09
-
-
Save letanure/dc588e335b583607e87ef74c7b0e92ac to your computer and use it in GitHub Desktop.
One line lint install & run
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
echo '.eslintignore\n.eslintrc.json\n.stylelintrc' >> .gitignore; echo '!**/*.snap\n!coverage\n!node_modules\n!.jest\n!generators/templates\n!.lintstagedrc.js\n' > .eslintignore; echo '{\n "env": {\n "browser": true,\n // "jest": true,\n // "node": true\n "es2021": true\n },\n // "settings": {\n // "react": {\n // "version": "detect"\n // }\n // },\n "extends": [\n "next/core-web-vitals",\n "eslint:recommended",\n "plugin:@typescript-eslint/recommended",\n "plugin:react/recommended",\n "prettier",\n "plugin:prettier/recommended"\n ],\n "parser": "@typescript-eslint/parser",\n "parserOptions": {\n "ecmaVersion": "latest",\n "sourceType": "module"\n },\n "plugins": [\n "@typescript-eslint",\n "react"\n // "react-hooks"\n ],\n "rules": {\n "react-hooks/rules-of-hooks": "error",\n "react-hooks/exhaustive-deps": "warn",\n "react/prop-types": "off",\n "react/react-in-jsx-scope": "off",\n "@typescript-eslint/explicit-module-boundary-types": "off",\n "@typescript-eslint/no-unused-vars": [\n "error",\n {\n "argsIgnorePattern": "^_",\n "varsIgnorePattern": "^_"\n }\n ]\n }\n}\n' > .eslintrc.json; echo '{\n "customSyntax": "postcss-styled-syntax",\n "plugins": [\n "stylelint-order"\n ],\n "rules": {\n "order/order": [\n "custom-properties",\n "declarations"\n ],\n "order/properties-alphabetical-order": true\n }\n}\n' > .stylelintrc; pnpm i @babel/preset-typescript @trivago/prettier-plugin-sort-imports @typescript-eslint/eslint-plugin eslint eslint-config-next eslint-config-prettier eslint-plugin-prettier eslint-plugin-react postcss-styled-syntax prettier stylelint stylelint-config-standard stylelint-order -w ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment