Skip to content

Commit

Permalink
Merge pull request #63 from SandroMiguel/jul15/bump-dependencies
Browse files Browse the repository at this point in the history
Jul15/bump dependencies
  • Loading branch information
SandroMiguel authored Jul 27, 2023
2 parents 31bba02 + dab33f1 commit 402a4ce
Show file tree
Hide file tree
Showing 11 changed files with 1,118 additions and 575 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ used in my JavaScript projects ([Vanilla.js](http://vanilla-js.com/),

1. [Goals](#goals)
1. [Installation](#installation)
1. [Credits](#credits)
1. [Contributing](#contributing)
1. [Questions](#questions)
1. [License](#license)
Expand Down Expand Up @@ -177,6 +178,7 @@ extensions for Visual Studio Code.
[eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react)
- Plugin -
[eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks)
- [eslint-plugin-unicorn](https://www.npmjs.com/package/eslint-plugin-unicorn)
- IDE coding style - [EditorConfig](https://editorconfig.org/)
- Logo gear - made by [Freepik](http://www.freepik.com) from
[www.flaticon.com](https://www.flaticon.com/) is licensed by
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = {
],
env: {
browser: true,
es2022: true,
jest: true,
node: true,
},
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@
}
},
"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@types/jest": "^29.2.5",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@types/jest": "^29.5.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.32.0",
"eslint": "^8.45.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.6.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsdoc": "^39.6.6",
"eslint-plugin-jsdoc": "^46.4.4",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unicorn": "^45.0.2",
"eslint-plugin-unicorn": "^48.0.0",
"husky": "^8.0.3",
"jest": "^29.3.1",
"prettier": "^2.8.3",
"jest": "^29.6.1",
"prettier": "^3.0.0",
"react": "^18.2.0"
}
}
3 changes: 0 additions & 3 deletions rules/jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ module.exports = {
// Reports invalid types
'jsdoc/check-types': 'warn',

// Enforces a consistent padding of the block description.
'jsdoc/newline-after-description': 'warn',

// Requires that block description and tag description
// are written in complete sentences
'jsdoc/require-description-complete-sentence': 'warn',
Expand Down
3 changes: 3 additions & 0 deletions rules/unicorn.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
extends: ['plugin:unicorn/recommended'],
rules: {
'unicorn/filename-case': 0,
},
}
1 change: 1 addition & 0 deletions test/fixtures/import/prefer-default-export.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Rule: When there is only a single export from a module, prefer using default export over named export.
// Message: Prefer default export.
// ESLint config Cecilia: This rule should be ignored.
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md

export const foo = 'foo'
1 change: 1 addition & 0 deletions test/fixtures/jsdoc/require-example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Rule: Requires that all functions have examples.
// Message: Missing JSDoc @example description.
// ESLint config Cecilia: This rule should be ignored.
// https://github.com/gajus/eslint-plugin-jsdoc#require-example

/* eslint-disable no-unused-vars */
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/react/react-in-jsx-scope.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Rule: Prevent missing React when using JSX
// Message: 'React' must be in scope when using JSX.
// ESLint config Cecilia: This rule should be ignored.
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md

export default function SomeComponent() {
Expand Down
7 changes: 7 additions & 0 deletions test/fixtures/unicorn/filenameCase.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Rule: Enforces all linted files to have their names in a certain case style and lowercase file extension. The default is kebabCase.
// Message: Filename is not in kebab case. Rename it to `filename-case.js`.
// ESLint config Cecilia: This rule should be ignored.
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md

/* eslint-disable no-console */
console.log('hello')
16 changes: 13 additions & 3 deletions test/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ test('camelcase rule', async () => {
)
})

test('import/prefer-default-export rule', async () => {
test('ignore import/prefer-default-export rule', async () => {
const ruleId = 'import/prefer-default-export'
const result = await fetchTestFiles(ruleId)
const { messages } = result[0]
Expand All @@ -76,7 +76,7 @@ test('import/prefer-default-export rule', async () => {
)
})

test('jsdoc/require-example rule', async () => {
test('ignore jsdoc/require-example rule', async () => {
const ruleId = 'jsdoc/require-example'
const result = await fetchTestFiles(ruleId)
const { messages } = result[0]
Expand Down Expand Up @@ -116,7 +116,7 @@ test('react-hooks/rules-of-hooks', async () => {
)
})

test('react/react-in-jsx-scope', async () => {
test('ignore react/react-in-jsx-scope', async () => {
const ruleId = 'react/react-in-jsx-scope'
const result = await fetchTestFiles(ruleId)
const { messages } = result[0]
Expand Down Expand Up @@ -145,3 +145,13 @@ test('unicorn/catch-error-name', async () => {
messages[0] && messages[0].message,
)
})

test('ignore unicorn/filename-case', async () => {
const filename = 'unicorn/filenameCase'
const result = await fetchTestFiles(filename)
const { messages } = result[0]
expect(messages[0] && messages[0].ruleId).toBe(
undefined,
messages[0] && messages[0].message,
)
})
Loading

0 comments on commit 402a4ce

Please sign in to comment.