diff --git a/.gitignore b/.gitignore index 213ae9c36aa4..41847c7fd604 100644 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,5 @@ typings/ .next .DS_Store -.vscode .idea dist diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000000..0a2e1c827047 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,8 @@ +{ + "recommendations": [ + "esbenp.prettier-vscode", + "dbaeumer.vscode-eslint", + "editorconfig.editorconfig" + ], + "unwantedRecommendations": ["hookyqr.beautify", "dbaeumer.jshint"] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000000..18bf27ada556 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Jest Test Current eslint-plugin Rule", + "cwd": "${workspaceFolder}/packages/eslint-plugin/", + "program": "${workspaceFolder}/node_modules/jest/bin/jest.js", + "args": [ + "--colors", + "${workspaceFolder}/packages/eslint-plugin/tests/lib/rules/${fileBasename}" + ], + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000000..adcf2422e8f3 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,26 @@ + +{ + // An array of language ids which should be validated by ESLint + "eslint.validate": [ + "javascript", + "javascriptreact", + { + "language": "typescript", + "autoFix": true + }, + { + "language": "typescriptreact", + "autoFix": true + } + ], + + // When enabled, will trim trailing whitespace when saving a file. + "files.trimTrailingWhitespace": true, + + // typescript auto-format settings + "typescript.tsdk": "node_modules/typescript/lib", + "javascript.preferences.importModuleSpecifier": "auto", + "typescript.preferences.importModuleSpecifier": "auto", + "javascript.preferences.quoteStyle": "single", + "typescript.preferences.quoteStyle": "single" +}