Skip to content

Commit

Permalink
Switches to fork-ts-checker eslint support
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Jul 16, 2019
1 parent aa5b346 commit c9edd13
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 109 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/*
emojis.json
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
"impliedStrict": true
}
},
"plugins": ["import", "prettiest", "@typescript-eslint"],
Expand Down
105 changes: 28 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5330,18 +5330,17 @@
"@types/lodash-es": "4.17.3",
"@types/node": "10.11.7",
"@types/vscode": "1.31.0",
"@typescript-eslint/eslint-plugin": "1.11.0",
"@typescript-eslint/parser": "1.11.0",
"@typescript-eslint/eslint-plugin": "1.12.0",
"@typescript-eslint/parser": "1.12.0",
"clean-webpack-plugin": "3.0.0",
"circular-dependency-plugin": "5.0.2",
"css-loader": "3.0.0",
"eslint": "6.0.1",
"eslint-cli": "1.1.1",
"eslint-config-prettier": "6.0.0",
"eslint-loader": "2.2.1",
"eslint-plugin-import": "2.18.0",
"eslint-plugin-prettiest": "0.0.2",
"fork-ts-checker-webpack-plugin": "1.3.7",
"fork-ts-checker-webpack-plugin": "1.4.2",
"html-webpack-exclude-assets-plugin": "0.0.7",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "3.2.0",
Expand All @@ -5354,9 +5353,9 @@
"terser-webpack-plugin": "1.3.0",
"ts-loader": "6.0.4",
"typescript": "3.5.3",
"vsce": "1.64.0",
"vsce": "1.65.0",
"webpack": "4.35.3",
"webpack-cli": "3.3.5",
"webpack-cli": "3.3.6",
"webpack-bundle-analyzer": "3.3.2"
}
}
26 changes: 2 additions & 24 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function getExtensionConfig(env) {
new CleanPlugin({ cleanOnceBeforeBuildPatterns: ['**/*', '!**/webviews/**'] }),
new ForkTsCheckerPlugin({
async: false,
eslint: true,
useTypescriptIncrementalApi: true
})
];
Expand Down Expand Up @@ -94,18 +95,6 @@ function getExtensionConfig(env) {
},
module: {
rules: [
{
enforce: 'pre',
exclude: /node_modules|\.d\.ts$/,
test: /\.tsx?$/,
use: {
loader: 'eslint-loader',
options: {
cache: true,
failOnError: true
}
}
},
{
exclude: /node_modules|\.d\.ts$/,
test: /\.tsx?$/,
Expand Down Expand Up @@ -150,6 +139,7 @@ function getWebviewsConfig(env) {
new ForkTsCheckerPlugin({
tsconfig: path.resolve(__dirname, 'webviews.tsconfig.json'),
async: false,
eslint: true,
useTypescriptIncrementalApi: true
}),
new MiniCssExtractPlugin({
Expand Down Expand Up @@ -233,18 +223,6 @@ function getWebviewsConfig(env) {
},
module: {
rules: [
{
enforce: 'pre',
exclude: /node_modules|\.d\.ts$/,
test: /\.tsx?$/,
use: {
loader: 'eslint-loader',
options: {
cache: true,
failOnError: true
}
}
},
{
exclude: /node_modules|\.d\.ts$/,
test: /\.tsx?$/,
Expand Down

0 comments on commit c9edd13

Please sign in to comment.