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

chore: update to new eslint-config #75

Merged
merged 1 commit into from
Mar 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
"root": true,
"env": {
"browser": true,
"node": true
},
"extends": [
"@moxy/eslint-config-isomorphic",
"@moxy/eslint-config-jest",
"@moxy/eslint-config-react"
]
"@moxy/eslint-config-base/esm",
"@moxy/eslint-config-babel",
"@moxy/eslint-config-react",
"@moxy/eslint-config-react-web-a11y",
"@moxy/eslint-config-jest"
],
"rules": {
// Next.js <Link> component doesn't play nice with anchor validation
"jsx-a11y/anchor-is-valid": 0
}
}
2 changes: 2 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = (api) => {
api.cache(true);

Expand Down
27 changes: 27 additions & 0 deletions docusaurus/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"root": true,
"overrides": [
{
"files": "./**/*.js",
"excludedFiles": "./sidebars.js",
"env": {
"browser": true
},
"extends": [
"@moxy/eslint-config-base/esm",
"@moxy/eslint-config-babel",
"@moxy/eslint-config-react",
"@moxy/eslint-config-jest"
]
},
{
"files": "./sidebars.js",
"env": {
"node": true
},
"extends": [
"@moxy/eslint-config-base/cjs"
]
}
]
}
2 changes: 2 additions & 0 deletions docusaurus/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = {
title: 'Next.js with MOXY',
tagline: 'MOXY\'s boilerplate to create Next.js based applications',
Expand Down
2 changes: 2 additions & 0 deletions docusaurus/sidebars.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = {
docs: [
{
Expand Down
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const { compose, baseConfig, withWeb, withRTL } = require('@moxy/jest-config');

module.exports = compose([baseConfig, withWeb, withRTL]);
2 changes: 2 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

require('dotenv').config();

const { withRasterImages, withPlayback, withSVG, withFonts, with3D } = require('@moxy/next-common-files');
Expand Down
Loading