Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require Node.js 8 and ESLint 6 #8

Merged
merged 2 commits into from Nov 16, 2019
Merged

Require Node.js 8 and ESLint 6 #8

merged 2 commits into from Nov 16, 2019

Conversation

scttcper
Copy link
Contributor

@scttcper scttcper commented Nov 4, 2019

updated everything to the latest versions let me know if you would rather i match eslint-config-xo https://github.com/xojs/eslint-config-xo/blob/master/package.json#L55-L62

Currently, this package warns peerdependency when using eslint 6

Adds testing in node 12 and removes 6

BREAKING CHANGE: changes the minimum node version to 8 in package.json

@scttcper scttcper changed the title update dependencies, fix tests for eslint 6 feat: update dependencies, fix tests for eslint 6, require node 8 Nov 4, 2019

const fixture = `'use strict';\nconst x = true;\n\nif (x) {\n console.log();\n}\n`;

function runEslint(str, conf) {
const linter = new eslint.CLIEngine({
useEslintrc: false,
configFile: tempWrite.sync(JSON.stringify(conf))
configFile: path.join(__dirname, conf)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change? It was more elegant when you could just pass the config as an object.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really wasn't able to get that to work on eslint 6. Because the file created was located in the "temp" directory /temp/something it couldn't find the node_modules folder to use the eslint configs listed under extends.

@sindresorhus sindresorhus changed the title feat: update dependencies, fix tests for eslint 6, require node 8 Require Node.js 8 and ESLint 6 Nov 16, 2019
@sindresorhus sindresorhus merged commit 265557a into xojs:master Nov 16, 2019
@sindresorhus
Copy link
Member

Thanks :)

@scttcper scttcper deleted the update-eslint branch November 16, 2019 19:12
zckrs added a commit to radiofrance/eslint-config-radiofrance that referenced this pull request Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants