npm install --save-dev eslint prettier eslint-config-prettier eslint-plugin-react
Last active
March 27, 2023 17:50
-
-
Save shelooks16/2b53ffa9def29463b4ed24cf0a3711a0 to your computer and use it in GitHub Desktop.
Tic Tac Toe
This file contains hidden or 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
{ | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended", | |
"plugin:react/jsx-runtime", | |
"prettier" | |
], | |
"env": { | |
"browser": true | |
}, | |
"parserOptions": { | |
"ecmaVersion": 2021, | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"sourceType": "module" | |
}, | |
"settings": { | |
"react": { | |
"version": "detect" | |
} | |
}, | |
"rules": { | |
"react/prop-types": "off" | |
} | |
} |
This file contains hidden or 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
{ | |
"trailingComma": "es5", | |
"tabWidth": 2, | |
"semi": true, | |
"singleQuote": true, | |
"arrowParens": "avoid" | |
} |
This file contains hidden or 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
// scripts to lint and format files | |
"lint": "eslint src/**/*.{js,jsx}", | |
"format": "prettier --write src/**/*.{js,jsx,css}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment