Skip to content

Commit

Permalink
Merge pull request #569 from fishbrain/add-http-codes
Browse files Browse the repository at this point in the history
Add HTTP codes to magic numbers
  • Loading branch information
lhansford authored Sep 10, 2024
2 parents 419afde + 1bcbd0e commit f15a96b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@fishbrain/eslint-config-monorepo",
"private": true,
"description": "ESLint configs for Fishbrain projects",
"version": "6.0.10",
"version": "6.0.11",
"workspaces": [
"packages/*"
],
Expand Down
4 changes: 3 additions & 1 deletion packages/base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettierPlugin from 'eslint-plugin-prettier';

const HTTP_CODES = [200, 201, 204, 301, 302, 400, 401, 403, 404, 422, 500];
const HTTP_CODES = [
200, 201, 204, 301, 302, 307, 308, 400, 401, 403, 404, 409, 410, 422, 500,
];
const HTML_HEADER_LEVELS = [1, 2, 3, 4, 5, 6];
const COMMON_MATH_VALUES = [24, 60, 100];
const COMMON_INDEX_VALUES = [-1, 0, 1];
Expand Down
2 changes: 1 addition & 1 deletion packages/base/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fishbrain/eslint-config-base",
"packageManager": "yarn@4.4.1",
"version": "6.0.10",
"version": "6.0.11",
"type": "module",
"exports": "./index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fishbrain/eslint-config-react",
"packageManager": "yarn@4.4.1",
"version": "6.0.10",
"version": "6.0.11",
"type": "module",
"exports": "./index.js",
"scripts": {
Expand Down

0 comments on commit f15a96b

Please sign in to comment.