Skip to content

Instantly share code, notes, and snippets.

@leomeloxp
Created September 21, 2018 08:52
Show Gist options
  • Select an option

  • Save leomeloxp/5690b76edd60d41d1fa76416e85102d7 to your computer and use it in GitHub Desktop.

Select an option

Save leomeloxp/5690b76edd60d41d1fa76416e85102d7 to your computer and use it in GitHub Desktop.
ESLint + TSLint + Prettier on VSCode 🤓
{
"env": {
"browser": true,
"es6": true
},
"extends": "airbnb",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"import/no-extraneous-dependencies": ["off"],
"react/forbid-prop-types": ["error", { "forbid": ["any", "array"] }],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-filename-extension": [
"error",
{ "extensions": [".js", ".jsx"] }
],
"no-fallthrough": ["error", { "commentPattern": "break[\\s\\w]*omitted" }],
"comma-dangle": ["error", "never"],
"max-len": [
"off",
{
"code": 120
}
],
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
}
{
"dependencies": {
"@zeit/next-css": "^0.2.0",
"@zeit/next-typescript": "^1.1.0",
"apollo-boost": "^0.1.15",
"graphql": "0.13.2",
"graphql-tag": "^2.9.2",
"isomorphic-unfetch": "^2.1.1",
"next": "^6.1.1",
"next-compose-plugins": "^2.1.1",
"normalize.css": "^8.0.0",
"prop-types": "^15.6.2",
"react": "^16.4.2",
"react-apollo": "^2.1.11",
"react-dom": "^16.4.2",
"styled-components": "^3.4.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@types/googlemaps": "^3.30.13",
"@types/graphql": "^0.13.4",
"@types/jest": "^23.3.1",
"@types/next": "^6.1.4",
"@types/react": "^16.4.12",
"@types/react-dom": "^16.0.7",
"@types/styled-components": "^3.0.1",
"apollo": "^1.7.1",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.4.2",
"babel-plugin-styled-components": "^1.5.1",
"jest": "^23.5.0",
"react-testing-library": "^5.0.0",
"tslint": "^5.11.0",
"tslint-config-airbnb": "^5.10.0",
"tslint-config-prettier": "^1.15.0",
"tslint-react": "^3.6.0",
"typescript": "^3.0.1"
}
}
{
// These are the only ones modified from default settings
"prettier.singleQuote": true,
"prettier.eslintIntegration": true,
}
{
"defaultSeverity": "error",
"extends": [
"tslint:latest",
"tslint-config-airbnb",
"tslint-react",
"tslint-config-prettier"
],
"jsRules": {},
"rules": {
"import-name": [
true,
{
"app": "App",
"document": "Document",
"graphqlTag": "gql",
"isomorphicUnfetch": "fetch",
"head": "Head",
"link": "Link",
"react": "React",
"styledComponents": "styled",
"reactDom": "ReactDOM"
}
],
"jsx-boolean-value": ["never"],
"jsx-no-lambda": [false],
"jsx-self-close": [true],
"interface-name": [false],
"no-submodule-imports": [
true,
"next/app",
"next/document",
"next/link",
"next/router"
],
// Unused variables are still not allowed, but the one checking for this is the Typescript compiler
"no-unused-variable": [false],
"quotemark": [true, "single", "avoid-escape", "avoid-template"],
"variable-name": [true, "allow-pascal-case"]
},
"rulesDirectory": []
}
EditorConfig.EditorConfig@0.12.4
Zignd.html-css-class-completion@1.17.1
adrian.silverstripe@0.0.3
adrianhumphreys2.silverstripe@0.0.4
alefragnani.project-manager@9.0.0
bajdzis.vscode-database@1.5.2
christian-kohler.npm-intellisense@1.3.0
christian-kohler.path-intellisense@1.4.2
codezombiech.gitignore@0.5.0
cssho.vscode-svgviewer@1.4.6
DavidAnson.vscode-markdownlint@0.20.0
dbaeumer.vscode-eslint@1.6.0
deerawan.vscode-dash@1.10.0
donjayamanne.git-extension-pack@0.1.3
donjayamanne.githistory@0.4.2
dsznajder.es7-react-js-snippets@1.8.6
eamodio.gitlens@8.5.6
eg2.vscode-npm-script@0.3.5
esbenp.prettier-vscode@1.6.1
felixfbecker.php-debug@1.12.5
felixfbecker.php-intellisense@2.3.5
formulahendry.auto-rename-tag@0.0.15
formulahendry.code-runner@0.9.4
GrapeCity.gc-excelviewer@2.1.26
ikappas.phpcs@1.0.5
jock.svg@0.1.2
jpoissonnier.vscode-styled-components@0.0.21
kumar-harsh.graphql-for-vscode@1.12.1
liuji-jim.vue@0.1.5
MehediDracula.php-namespace-resolver@1.1.0
mikestead.dotenv@1.0.1
mrmlnc.vscode-apache@1.1.1
ms-python.python@2018.8.0
ms-vscode.node-debug2@1.28.2
ms-vsliveshare.vsliveshare@0.3.709
msjsdiag.debugger-for-chrome@4.10.1
neilbrayfield.php-docblocker@1.6.0
octref.vetur@0.12.6
persoderlind.vscode-phpcbf@0.0.8
PeterJausovec.vscode-docker@0.2.0
pnp.polacode@0.2.2
robertohuertasm.vscode-icons@7.26.0
ryu1kn.partial-diff@1.4.0
sbrink.elm@0.21.0
sdras.vue-vscode-snippets@1.3.0
Shan.code-settings-sync@3.1.2
silvenon.mdx@0.1.0
sysoev.language-stylus@1.10.0
timonwong.shellcheck@0.5.1
vsmobile.vscode-react-native@0.6.17
waderyan.babelrc@1.0.0
WallabyJs.quokka-vscode@1.0.149
wayou.vscode-todo-highlight@1.0.4
wesbos.theme-cobalt2@2.1.6
wix.vscode-import-cost@2.9.0
ziyasal.vscode-open-in-github@1.3.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment