Skip to content

Commit

Permalink
chore(linter): Update config to provide vtk.js alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Nov 1, 2018
1 parent 0a8dc64 commit 05e40ed
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
trim_trailing_whitespace = true
33 changes: 24 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@ module.exports = {
'prettier/prettier': ['error', prettierConf],

// But we want the following
'no-multi-spaces': ["error", { exceptions: { "ImportDeclaration": true } }],
'no-param-reassign': ["error", { props: false }],
'no-unused-vars': ["error", { args: 'none' }],
'prefer-destructuring': ["error", { VariableDeclarator: { array: false, object: true }, AssignmentExpression: { array: false, object: false } }, { enforceForRenamedProperties: false }],
'no-multi-spaces': ['error', { exceptions: { ImportDeclaration: true } }],
'no-param-reassign': ['error', { props: false }],
'no-unused-vars': ['error', { args: 'none' }],
'prefer-destructuring': [
'error',
{
VariableDeclarator: { array: false, object: true },
AssignmentExpression: { array: false, object: false },
},
{ enforceForRenamedProperties: false },
],
'import/no-extraneous-dependencies': 0, // Needed for tests
// 'no-mixed-operators': 'error', // Wish we can put it back with prettier

Expand All @@ -26,15 +33,23 @@ module.exports = {
// [...]
'linebreak-style': 0,
},
plugins: [
'prettier'
],
plugins: ['prettier'],
globals: {
__BASE_PATH__: false,
VRFrameData: true,
},
'settings': {
'import/resolver': 'webpack'
settings: {
'import/resolver': {
webpack: {
config: {
resolve: {
alias: {
'vtk.js': __dirname,
},
},
},
},
},
},
env: {
es6: true,
Expand Down

0 comments on commit 05e40ed

Please sign in to comment.