Skip to content

Commit

Permalink
Merge pull request #302 from emulsify-ds/feat-node20-upgrade
Browse files Browse the repository at this point in the history
feat: node20 upgrade
  • Loading branch information
callinmullaney authored Nov 27, 2023
2 parents e8b8c56 + 49afde5 commit 57b24c1
Show file tree
Hide file tree
Showing 24 changed files with 19,009 additions and 14,813 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/*.min.js
**/node_modules/**/*
20 changes: 19 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
root: true
extends:
- airbnb-base
- eslint:recommended
- plugin:import/recommended
- plugin:security/recommended
- plugin:prettier/recommended
plugins:
- import
- security
- prettier
- jest
Expand All @@ -17,9 +20,24 @@ globals:
describe: true
Drupal: true
parser: "@babel/eslint-parser"
parserOptions:
parserOptions:
requireConfigFile: false
babelOptions:
babelrc: false
configFile: true
presets: ["@babel/preset-env"]
rules:
strict: 0
import/no-extraneous-dependencies: 0
prettier/prettier: error
settings:
import/ignore:
- \.(scss|less|css)$ # can't parse unprocessed CSS modules, either
import/resolver:
node:
extensions:
- '.js'
- '.jsx'
moduleDirectory:
- 'src'
- 'node_modules'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ignore compiled files.
dist
dist/**/*
!dist/.gitkeep

# npm
node_modules
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run husky:commit-msg
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint-staged ; npm run lint
npm run husky:pre-commit
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.18
lts/iron
4 changes: 3 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ module.exports = {
'@storybook/addon-a11y',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-mdx-gfm',
],
core: {
builder: 'webpack5',
},
framework: {
name: '@storybook/html-webpack5',
options: {},
Expand Down
11 changes: 6 additions & 5 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier"
"stylelint-config-standard"
],
"plugins": [
"stylelint-prettier"
Expand All @@ -27,8 +26,10 @@
]
}
],
"number-leading-zero": "always",
"number-no-trailing-zeros": true,
"prettier/prettier": true
"function-no-unknown": null,
"value-keyword-case": null,
"prettier/prettier": true,
"selector-class-pattern": null,
"selector-not-notation": null
}
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion scripts/a11y.js → assets/scripts/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const {
pa11y: pa11yConfig,
ignore,
components,
} = require('../a11y.config.js');
} = require('../../a11y.config.js');

const STORYBOOK_BUILD_DIR = path.resolve(__dirname, '../', storybookBuildDir);
const STORYBOOK_IFRAME = path.join(STORYBOOK_BUILD_DIR, 'iframe.html');
Expand Down
2 changes: 1 addition & 1 deletion scripts/a11y.test.js → assets/scripts/a11y.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const {
ignore,
storybookBuildDir,
pa11y: pa11yConfig,
} = require('../a11y.config');
} = require('../../a11y.config');

const STORYBOOK_BUILD_DIR = path.resolve(__dirname, '../', storybookBuildDir);
const STORYBOOK_IFRAME = path.join(STORYBOOK_BUILD_DIR, 'iframe.html');
Expand Down
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
Empty file added dist/.gitkeep
Empty file.
Loading

0 comments on commit 57b24c1

Please sign in to comment.