-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #620 from Kitware/new-release
New release
- Loading branch information
Showing
229 changed files
with
39,993 additions
and
7,730 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
presets: [ | ||
'react', | ||
['env', { | ||
targets: { | ||
browsers: ['last 2 versions'], | ||
}, | ||
}], | ||
], | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,56 @@ | ||
var prettierConf = require('./prettier.config.js'); | ||
|
||
module.exports = { | ||
extends: 'airbnb', | ||
env: { browser: true }, | ||
extends: ['airbnb', 'prettier'], | ||
rules: { | ||
// ESLint ---------------------------------- | ||
'block-spacing': 0, | ||
'global-require': 0, | ||
'max-len': [1, 160, 4, {"ignoreUrls": true}], | ||
'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 }], | ||
'import/no-extraneous-dependencies': 0, // Needed for tests | ||
// 'no-mixed-operators': 'error', // Wish we can put it back with prettier | ||
|
||
// Not for us | ||
'jsx-a11y/label-has-for': 0, | ||
'no-console': 0, | ||
'no-mixed-operators': 0, | ||
'no-multi-spaces': [2, { exceptions: { "ImportDeclaration": true } }], | ||
'no-nested-ternary': 0, | ||
'no-param-reassign': [2, { props: false }], | ||
'no-plusplus': ["error", { "allowForLoopAfterthoughts": true }], | ||
'no-prototype-builtins': 0, | ||
'no-underscore-dangle': 0, | ||
'no-unused-vars': [2, { args: 'none' }], | ||
'no-var': 0, | ||
'one-var': 0, | ||
// imports ---------------------------------- | ||
'import/imports-first': 0, | ||
'import/no-extraneous-dependencies': 0, | ||
'no-plusplus': 0, | ||
'import/no-named-as-default': 0, | ||
'import/no-named-as-default-member': 0, | ||
'import/no-unresolved': 0, | ||
'import/prefer-default-export': 0, | ||
// react ---------------------------------- | ||
'react/forbid-prop-types': 0, | ||
'react/jsx-closing-bracket-location': 0, | ||
'react/jsx-curly-spacing': 0, | ||
'prefer-destructuring': 0, // Can have unwanted side effect | ||
'react/jsx-filename-extension': 0, | ||
'react/jsx-first-prop-new-line': 0, | ||
'react/jsx-indent': 0, | ||
'react/no-is-mounted': 1, | ||
'react/prefer-es6-class': 0, | ||
'react/prefer-stateless-function': 0, | ||
// jsx-a11y ---------------------------------- | ||
'jsx-a11y/img-has-alt': 0, | ||
'jsx-a11y/label-has-for': 0, | ||
'jsx-a11y/no-static-element-interactions': 0, | ||
} | ||
'jsx-a11y/click-events-have-key-events': 0, | ||
'jsx-a11y/no-noninteractive-element-interactions': 0, | ||
'jsx-a11y/no-autofocus': 0, | ||
'jsx-a11y/anchor-is-valid': 0, | ||
|
||
// Introduced with new eslint | ||
// and no time to fix them... | ||
// [...] | ||
'linebreak-style': 0, | ||
'no-useless-escape': 0, | ||
'no-nested-ternary': 0, | ||
'react/forbid-prop-types': 0, | ||
'react/no-array-index-key': 0, | ||
'no-underscore-dangle': 0, | ||
'import/prefer-default-export': 0, | ||
'prefer-promise-reject-errors': 0, | ||
}, | ||
plugins: [ | ||
'prettier' | ||
], | ||
globals: { | ||
__BASE_PATH__: false, | ||
VRFrameData: true, | ||
}, | ||
'settings': { | ||
'import/resolver': 'webpack' | ||
}, | ||
env: { | ||
es6: true, | ||
browser: true, | ||
}, | ||
}; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
const autoprefixer = require('autoprefixer'); | ||
|
||
module.exports = [ | ||
{ | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
use: [ | ||
{ | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['env', 'react'], | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
test: /\.mcss$/, | ||
use: [ | ||
{ loader: 'style-loader' }, | ||
{ | ||
loader: 'css-loader', | ||
options: { | ||
localIdentName: '[name]-[local]_[sha512:hash:base32:5]', | ||
modules: true, | ||
}, | ||
}, | ||
{ | ||
loader: 'postcss-loader', | ||
options: { | ||
plugins: () => [autoprefixer('last 2 version', 'ie >= 10')], | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
test: /\.html$/, | ||
loader: 'html-loader', | ||
}, | ||
{ | ||
test: /\.isvg$/, | ||
loader: 'html-loader?attrs=false', | ||
}, | ||
{ | ||
test: /\.svg$/, | ||
loader: 'svg-sprite-loader?runtimeCompat=true', | ||
exclude: /fonts/, | ||
}, | ||
{ | ||
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
loader: 'url-loader?limit=60000&mimetype=application/font-woff', | ||
}, | ||
{ | ||
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
loader: 'url-loader?limit=60000', | ||
include: /fonts/, | ||
}, | ||
{ | ||
test: /\.(png|jpg)$/, | ||
loader: 'url-loader?limit=8192', | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: [ | ||
{ loader: 'style-loader' }, | ||
{ loader: 'css-loader' }, | ||
{ | ||
loader: 'postcss-loader', | ||
options: { | ||
plugins: () => [autoprefixer('last 2 version', 'ie >= 10')], | ||
}, | ||
}, | ||
], | ||
}, | ||
]; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const path = require('path'); | ||
|
||
const eslintrcPath = path.join(__dirname, '../.eslintrc.js'); | ||
|
||
module.exports = [ | ||
{ | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
loader: 'eslint-loader', | ||
enforce: 'pre', | ||
options: { configFile: eslintrcPath }, | ||
}, | ||
]; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const autoprefixer = require('autoprefixer'); | ||
|
||
module.exports = [ | ||
{ | ||
test: /\.js$/, | ||
include: /node_modules(\/|\\)paraviewweb(\/|\\)/, | ||
use: [ | ||
{ | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['env', 'react'], | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
test: /\.c$/i, | ||
include: /node_modules(\/|\\)paraviewweb(\/|\\)/, | ||
loader: 'shader-loader', | ||
}, | ||
]; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = [ | ||
{ | ||
test: /\.js$/, | ||
include: /node_modules(\/|\\)simput(\/|\\)/, | ||
use: [ | ||
{ | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['env', 'react'], | ||
}, | ||
}, | ||
], | ||
}, | ||
]; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = [ | ||
{ | ||
test: /\.js$/, | ||
include: /node_modules(\/|\\)pvw-visualizer(\/|\\)/, | ||
use: [ | ||
{ | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['env', 'react'], | ||
}, | ||
}, | ||
], | ||
}, | ||
]; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = [ | ||
{ | ||
test: /\.glsl$/i, | ||
include: /node_modules(\/|\\)vtk.js(\/|\\)/, | ||
loader: 'shader-loader', | ||
}, | ||
{ | ||
test: /\.js$/, | ||
include: /node_modules(\/|\\)vtk.js(\/|\\)/, | ||
use: [ | ||
{ | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['env'], | ||
}, | ||
}, | ||
], | ||
}, | ||
]; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = [ | ||
{ | ||
test: /\.js$/, | ||
include: /node_modules(\/|\\)wslink(\/|\\)/, | ||
use: [ | ||
{ | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['env'], | ||
}, | ||
}, | ||
], | ||
}, | ||
]; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.