Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Additional changes required
Browse files Browse the repository at this point in the history
  • Loading branch information
edmorley committed Sep 9, 2019
1 parent f3adcc3 commit cc39728
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docs/migration-guide.md
Expand Up @@ -190,8 +190,8 @@ module.exports = {
}
```

- **BREAKING CHANGE** Upgraded to latest major versions of webpack, webpack-dev-server, Babel 7,
ESLint 5, and related packages [#809](https://github.com/neutrinojs/neutrino/pull/809).
- **BREAKING CHANGE** Upgraded to latest major versions of webpack, webpack-dev-server, Babel,
ESLint, and related packages [#809](https://github.com/neutrinojs/neutrino/pull/809) and others.
- **BREAKING CHANGE** The `@neutrinojs/chunk` middleware has been removed in favor of webpack's
improved functionality around `splitChunks` [#809](https://github.com/neutrinojs/neutrino/pull/809). See
[the split chunks documentation](https://webpack.js.org/plugins/split-chunks-plugin/) for more information.
Expand Down
2 changes: 1 addition & 1 deletion packages/airbnb-base/README.md
Expand Up @@ -25,7 +25,7 @@ instead._
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9 and one of the Neutrino build presets
- webpack 4
- ESLint 5
- ESLint 6

## Quickstart

Expand Down
2 changes: 1 addition & 1 deletion packages/airbnb/README.md
Expand Up @@ -20,7 +20,7 @@ with Airbnb's ESLint config, following the
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9 and one of the Neutrino build presets
- webpack 4
- ESLint 5
- ESLint 6

## Quickstart

Expand Down
2 changes: 1 addition & 1 deletion packages/create-project/commands/init/constants.js
Expand Up @@ -32,7 +32,7 @@ const N = {
};

// Tool dependencies
const ESLINT = 'eslint@^5';
const ESLINT = 'eslint@^6';
const JEST = 'jest@^24';
const KARMA = 'karma@^4';
const KARMA_CLI = 'karma-cli@^2';
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint/README.md
Expand Up @@ -11,7 +11,7 @@ and eslint-loader.
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9 and one of the Neutrino build presets
- webpack 4
- ESLint 5
- ESLint 6

## Installation

Expand Down
14 changes: 7 additions & 7 deletions packages/eslint/index.js
Expand Up @@ -4,7 +4,7 @@ const arrayToObject = array =>
array.reduce((obj, item) => Object.assign(obj, { [item]: true }), {});

// Return an ESLint config object matching the schema here:
// https://github.com/eslint/eslint/blob/v5.7.0/conf/config-schema.js
// https://github.com/eslint/eslint/blob/v6.3.0/conf/config-schema.js
const eslintrc = neutrino => {
const options = neutrino.config.module
.rule('lint')
Expand Down Expand Up @@ -55,10 +55,8 @@ const eslintrc = neutrino => {

const validLoaderOptions = [
// Used by eslint-loader itself. See:
// https://github.com/webpack-contrib/eslint-loader#options
// (Plus more that aren't documented)
// https://github.com/webpack-contrib/eslint-loader/blob/v3.0.0/src/options.json
'cache',
'cacheIdentifier',
'emitError',
'emitWarning',
'eslintPath',
Expand All @@ -70,14 +68,15 @@ const validLoaderOptions = [
'quiet',
// Used by CLIEngine. See:
// https://eslint.org/docs/developer-guide/nodejs-api#cliengine
// https://github.com/eslint/eslint/blob/v5.7.0/lib/cli-engine.js#L39-L62
// https://github.com/eslint/eslint/blob/v6.3.0/lib/cli-engine/cli-engine.js#L54-L76
// Excluding the cache options (since eslint-loader handles that),
// and any that are not applicable to `CLIEngine.executeOnText()`.
'allowInlineConfig',
'baseConfig',
'configFile',
'cwd',
'envs',
'fixTypes',
'globals',
'ignore',
'ignorePath',
Expand All @@ -86,14 +85,15 @@ const validLoaderOptions = [
'parserOptions',
'plugins',
'reportUnusedDisableDirectives',
'resolvePluginsRelativeTo',
'rulePaths',
'rules',
'useEslintrc',
];

module.exports = ({ test, include, exclude, eslint = {} } = {}) => {
// Neither eslint-loader nor ESLint's `CLIEngine` validate passed options, so
// we do so here to make it easier to work out why settings seemingly aren't
// Neither eslint-loader nor ESLint's `CLIEngine` fully validate passed options,
// so we do so here to make it easier to work out why settings seemingly aren't
// taking effect. This is particularly important given that the configuration
// options are inconsistently named between CLIEngine and the eslintrc schema.
// Upstream issues for adding validation:
Expand Down
2 changes: 1 addition & 1 deletion packages/standardjs/README.md
Expand Up @@ -20,7 +20,7 @@ projects with the [StandardJS ESLint config](https://standardjs.com).
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9 and one of the Neutrino build presets
- webpack 4
- ESLint 5
- ESLint 6

## Quickstart

Expand Down

0 comments on commit cc39728

Please sign in to comment.