Skip to content

Commit ccfe8d5

Browse files
committed
Update
1 parent f7a63b4 commit ccfe8d5

42 files changed

Lines changed: 1106939 additions & 516 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

js/PapaParse-master/.eslintrc.js

Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
module.exports = {
2+
"parserOptions": {
3+
"ecmaVersion": 6
4+
},
5+
"env": {
6+
"es6": true,
7+
"browser": true,
8+
"worker": true,
9+
"node": true
10+
},
11+
"extends": "eslint:recommended",
12+
"rules": {
13+
"accessor-pairs": "error",
14+
"array-bracket-newline": ["error", "consistent"],
15+
"array-bracket-spacing": [
16+
"error",
17+
"never"
18+
],
19+
"array-callback-return": "error",
20+
"array-element-newline": "off",
21+
"arrow-body-style": "error",
22+
"arrow-parens": "error",
23+
"arrow-spacing": "error",
24+
"block-scoped-var": "error",
25+
"block-spacing": "error",
26+
"brace-style": "off",
27+
"callback-return": "error",
28+
"camelcase": ["error", {"properties": "never"}],
29+
"capitalized-comments": "off",
30+
"class-methods-use-this": "error",
31+
"comma-dangle": "off",
32+
"comma-spacing": "off",
33+
"comma-style": [
34+
"error",
35+
"last"
36+
],
37+
"complexity": "off",
38+
"computed-property-spacing": [
39+
"error",
40+
"never"
41+
],
42+
"consistent-return": "off",
43+
"consistent-this": "off",
44+
"curly": "off",
45+
"default-case": "error",
46+
"dot-location": "error",
47+
"dot-notation": "error",
48+
"eol-last": "error",
49+
"eqeqeq": "error",
50+
"for-direction": "error",
51+
"func-call-spacing": "error",
52+
"func-name-matching": "error",
53+
"func-names": [
54+
"error",
55+
"never"
56+
],
57+
"func-style": "off",
58+
"function-paren-newline": "off",
59+
"generator-star-spacing": "error",
60+
"getter-return": "error",
61+
"global-require": "off",
62+
"guard-for-in": "off",
63+
"handle-callback-err": "error",
64+
"id-blacklist": "error",
65+
"id-length": "off",
66+
"id-match": "error",
67+
"implicit-arrow-linebreak": "error",
68+
"indent": [
69+
"error",
70+
"tab"
71+
],
72+
"indent-legacy": "off",
73+
"init-declarations": "off",
74+
"jsx-quotes": "error",
75+
"key-spacing": "error",
76+
"keyword-spacing": "off",
77+
"line-comment-position": "off",
78+
"linebreak-style": [
79+
"error",
80+
"unix"
81+
],
82+
"lines-around-comment": "off",
83+
"lines-around-directive": "off",
84+
"lines-between-class-members": "error",
85+
"max-depth": "off",
86+
"max-len": "off",
87+
"max-lines": "off",
88+
"max-nested-callbacks": "error",
89+
"max-params": "off",
90+
"max-statements": "off",
91+
"max-statements-per-line": "off",
92+
"multiline-comment-style": "off",
93+
"multiline-ternary": [
94+
"error",
95+
"always-multiline"
96+
],
97+
"new-parens": "error",
98+
"newline-after-var": "off",
99+
"newline-before-return": "off",
100+
"newline-per-chained-call": "off",
101+
"no-alert": "error",
102+
"no-array-constructor": "error",
103+
"no-await-in-loop": "error",
104+
"no-bitwise": "error",
105+
"no-buffer-constructor": "error",
106+
"no-caller": "error",
107+
"no-catch-shadow": "off",
108+
"no-cond-assign": [
109+
"error",
110+
"except-parens"
111+
],
112+
"no-confusing-arrow": "error",
113+
"no-console": "off",
114+
"no-continue": "off",
115+
"no-div-regex": "error",
116+
"no-duplicate-imports": "error",
117+
"no-else-return": "off",
118+
"no-empty": ["error", {"allowEmptyCatch": true}],
119+
"no-empty-function": "off",
120+
"no-eq-null": "error",
121+
"no-eval": "error",
122+
"no-extend-native": "error",
123+
"no-extra-bind": "error",
124+
"no-extra-label": "error",
125+
"no-extra-parens": "off",
126+
"no-floating-decimal": "error",
127+
"no-implicit-globals": "error",
128+
"no-implied-eval": "error",
129+
"no-inline-comments": "off",
130+
"no-inner-declarations": [
131+
"error",
132+
"functions"
133+
],
134+
"no-invalid-this": "off",
135+
"no-iterator": "error",
136+
"no-label-var": "error",
137+
"no-labels": "error",
138+
"no-lone-blocks": "error",
139+
"no-lonely-if": "error",
140+
"no-loop-func": "error",
141+
"no-magic-numbers": "off",
142+
"no-mixed-operators": "off",
143+
"no-mixed-requires": "error",
144+
"no-multi-assign": "error",
145+
"no-multi-spaces": "off",
146+
"no-multi-str": "error",
147+
"no-multiple-empty-lines": "off",
148+
"no-native-reassign": "error",
149+
"no-negated-condition": "off",
150+
"no-negated-in-lhs": "error",
151+
"no-nested-ternary": "off",
152+
"no-new": "error",
153+
"no-new-func": "error",
154+
"no-new-object": "error",
155+
"no-new-require": "error",
156+
"no-new-wrappers": "error",
157+
"no-octal-escape": "error",
158+
"no-param-reassign": "off",
159+
"no-path-concat": "off",
160+
"no-plusplus": "off",
161+
"no-process-env": "error",
162+
"no-process-exit": "error",
163+
"no-proto": "error",
164+
"no-prototype-builtins": "error",
165+
"no-restricted-globals": "error",
166+
"no-restricted-imports": "error",
167+
"no-restricted-modules": "error",
168+
"no-restricted-properties": "error",
169+
"no-restricted-syntax": "error",
170+
"no-return-assign": "error",
171+
"no-return-await": "error",
172+
"no-script-url": "error",
173+
"no-self-compare": "error",
174+
"no-sequences": "error",
175+
"no-shadow": "off",
176+
"no-shadow-restricted-names": "error",
177+
"no-spaced-func": "error",
178+
"no-sync": ["error", {"allowAtRootLevel": true}],
179+
"no-tabs": "off",
180+
"no-template-curly-in-string": "error",
181+
"no-ternary": "off",
182+
"no-throw-literal": "error",
183+
"no-trailing-spaces": "error",
184+
"no-undef-init": "error",
185+
"no-undefined": "off",
186+
"no-underscore-dangle": "off",
187+
"no-unmodified-loop-condition": "off",
188+
"no-unneeded-ternary": "error",
189+
"no-unused-expressions": "off",
190+
"no-unused-vars": ["error", {"args": "none"}],
191+
"no-use-before-define": "off",
192+
"no-useless-call": "error",
193+
"no-useless-computed-key": "error",
194+
"no-useless-concat": "error",
195+
"no-useless-constructor": "error",
196+
"no-useless-rename": "error",
197+
"no-useless-return": "off",
198+
"no-var": "off",
199+
"no-void": "error",
200+
"no-warning-comments": "error",
201+
"no-whitespace-before-property": "error",
202+
"no-with": "error",
203+
"nonblock-statement-body-position": [
204+
"error",
205+
"any"
206+
],
207+
"object-curly-newline": ["error", {"consistent": true}],
208+
"object-curly-spacing": "off",
209+
"object-shorthand": "off",
210+
"one-var": "off",
211+
"one-var-declaration-per-line": "off",
212+
"operator-assignment": [
213+
"error",
214+
"always"
215+
],
216+
"operator-linebreak": "off",
217+
"padded-blocks": "off",
218+
"padding-line-between-statements": "error",
219+
"prefer-arrow-callback": "off",
220+
"prefer-const": "error",
221+
"prefer-destructuring": "off",
222+
"prefer-numeric-literals": "error",
223+
"prefer-promise-reject-errors": "error",
224+
"prefer-reflect": "off",
225+
"prefer-rest-params": "off",
226+
"prefer-spread": "error",
227+
"prefer-template": "off",
228+
"quote-props": "off",
229+
"quotes": "off",
230+
"radix": [
231+
"error",
232+
"as-needed"
233+
],
234+
"require-await": "error",
235+
"require-jsdoc": "off",
236+
"rest-spread-spacing": "error",
237+
"semi": "error",
238+
"semi-spacing": "error",
239+
"semi-style": [
240+
"error",
241+
"last"
242+
],
243+
"sort-imports": "error",
244+
"sort-keys": "off",
245+
"sort-vars": "off",
246+
"space-before-blocks": "error",
247+
"space-before-function-paren": [
248+
"error",
249+
"never"
250+
],
251+
"space-in-parens": [
252+
"error",
253+
"never"
254+
],
255+
"space-infix-ops": "error",
256+
"space-unary-ops": [
257+
"error",
258+
{
259+
"nonwords": false,
260+
"words": false
261+
}
262+
],
263+
"spaced-comment": "off",
264+
"strict": "off",
265+
"switch-colon-spacing": "error",
266+
"symbol-description": "error",
267+
"template-curly-spacing": "error",
268+
"template-tag-spacing": "error",
269+
"unicode-bom": [
270+
"error",
271+
"never"
272+
],
273+
"valid-jsdoc": "off",
274+
"vars-on-top": "off",
275+
"wrap-iife": "off",
276+
"wrap-regex": "off",
277+
"yield-star-spacing": "error",
278+
"yoda": "off"
279+
}
280+
};
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [20.x, 22.x, 24.x]
20+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- run: npm install
29+
- run: npm run lint && npm run test-node && npm run build

js/PapaParse-master/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
_gitignore/
22
bower_components/
3-
node_modules/
3+
node_modules/
4+
package-lock.json
5+
yarn.lock

js/PapaParse-master/.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
_gitignore/
22
bower_components/
3-
node_modules/
3+
node_modules/
4+
docs/

js/PapaParse-master/Gruntfile.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@ module.exports = function(grunt) {
22
grunt.initConfig({
33
uglify: {
44
options: {
5-
preserveComments: 'some',
5+
compress: {
6+
global_defs: {
7+
'PAPA_BROWSER_CONTEXT': true
8+
},
9+
dead_code: true
10+
},
11+
output: {
12+
comments: 'some',
13+
},
614
},
715
min: {
816
files: {
@@ -15,4 +23,5 @@ module.exports = function(grunt) {
1523
grunt.loadNpmTasks('grunt-contrib-uglify');
1624

1725
grunt.registerTask('build', ['uglify']);
18-
}
26+
grunt.registerTask('default', ['uglify']);
27+
};

0 commit comments

Comments
 (0)